Запрос к API
async function loadUser(id: string) {
  const res = await fetch(`/api/users/${id}`)
  return res.json()
}
async function loadUser(id) {
  const res = await fetch(`/api/users/${id}`)
  return res.json()
}
# тот же запрос, тот же ответ
async def load_user(user_id: str):
    async with session.get(f"/api/users/{user_id}") as res:
        return await res.json()