item_id is now id

This commit is contained in:
Waylon Walker 2023-05-21 13:18:22 -05:00
parent 8080d7101e
commit 00eed9f0cf
No known key found for this signature in database
GPG key ID: 66E2BF2B4190EFE4

View file

@ -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/")