diff --git a/learn_sql_model/api/hero.py b/learn_sql_model/api/hero.py index 3560421..f61f448 100644 --- a/learn_sql_model/api/hero.py +++ b/learn_sql_model/api/hero.py @@ -16,7 +16,7 @@ async def read_items(token: Annotated[str, Depends(oauth2_scheme)]): @hero_router.get("/hero/{id}") def get_hero(id: int) -> Hero: "get one hero" - return Hero.get(item_id=id) + return Hero().get(id=id) @hero_router.post("/hero/")