Browse Source

add interface

master
sunfree 10 months ago
parent
commit
6b3499e5e6
  1. 6
      main.py

6
main.py

@ -55,9 +55,9 @@ async def register_user(user: UserInDB, _: User = Depends(get_current_active_use
# @app.get("/users/me/items/")
# async def read_own_items(current_user: User = Depends(get_current_active_user)):
# return [{"item_id": "Foo", "owner": current_user.username}]
@app.get("/users/me/items/")
async def read_own_items(current_user: User = Depends(get_current_active_user)):
return [{"item_id": "Foo", "owner": current_user.username}]
# @app.get("/list",response_model=list[BlogList])
# def read_type_all():

Loading…
Cancel
Save