|
|
@ -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(): |
|
|
|