some changes (test commit)

This commit is contained in:
DmitryGantimurov 2023-07-27 20:05:20 +03:00
parent 30140f058f
commit 6b32cc70b6

View File

@ -166,18 +166,18 @@ async def login_for_access_token(
return access_token
@app.get("/api/users/me/", response_model=schema.User)
async def read_users_me(
current_user: Annotated[User, Depends(get_current_active_user)]
):
return current_user
# @app.get("/api/users/me/", response_model=schema.User)
# async def read_users_me(
# current_user: Annotated[User, Depends(get_current_active_user)]
# ):
# return current_user
@app.get("/api/users/me/items/")
async def read_own_items(
current_user: Annotated[User, Depends(get_current_active_user)]
):
return [{"Current user name": current_user.name, "Current user surname": current_user.surname}]
# @app.get("/api/users/me/items/")
# async def read_own_items(
# current_user: Annotated[User, Depends(get_current_active_user)]
# ):
# return [{"Current user name": current_user.name, "Current user surname": current_user.surname}]