some changes (test commit)
This commit is contained in:
parent
30140f058f
commit
6b32cc70b6
20
back/main.py
20
back/main.py
@ -166,18 +166,18 @@ async def login_for_access_token(
|
|||||||
return access_token
|
return access_token
|
||||||
|
|
||||||
|
|
||||||
@app.get("/api/users/me/", response_model=schema.User)
|
# @app.get("/api/users/me/", response_model=schema.User)
|
||||||
async def read_users_me(
|
# async def read_users_me(
|
||||||
current_user: Annotated[User, Depends(get_current_active_user)]
|
# current_user: Annotated[User, Depends(get_current_active_user)]
|
||||||
):
|
# ):
|
||||||
return current_user
|
# return current_user
|
||||||
|
|
||||||
|
|
||||||
@app.get("/api/users/me/items/")
|
# @app.get("/api/users/me/items/")
|
||||||
async def read_own_items(
|
# async def read_own_items(
|
||||||
current_user: Annotated[User, Depends(get_current_active_user)]
|
# current_user: Annotated[User, Depends(get_current_active_user)]
|
||||||
):
|
# ):
|
||||||
return [{"Current user name": current_user.name, "Current user surname": current_user.surname}]
|
# return [{"Current user name": current_user.name, "Current user surname": current_user.surname}]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user