item_id is now id
This commit is contained in:
parent
8080d7101e
commit
00eed9f0cf
1 changed files with 1 additions and 1 deletions
|
|
@ -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/")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue