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}]