From 6b32cc70b6b0b804cb60b3434e7d6bba026cc817 Mon Sep 17 00:00:00 2001 From: DmitryGantimurov Date: Thu, 27 Jul 2023 20:05:20 +0300 Subject: [PATCH] some changes (test commit) --- back/main.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/back/main.py b/back/main.py index 0d9a438..a3c3689 100644 --- a/back/main.py +++ b/back/main.py @@ -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}]