Skip to content

Commit

Permalink
usermedetails
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexTraveylan committed Aug 27, 2024
1 parent 2466f63 commit c3e88ee
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/auth/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
from app.auth.token import (
Token,
User,
UserWithInformations,
authenticate_user,
create_access_token,
get_current_user,
get_current_user_with_informations,
)
from app.database.unit_of_work import unit_api
from app.exceptions import (
Expand Down Expand Up @@ -62,6 +64,15 @@ def read_users_me(
return current_user


@auth_router.get("/users/me/details/")
def read_users_me_details(
current_user: Annotated[
UserWithInformations, Depends(get_current_user_with_informations)
],
) -> UserWithInformations:
return current_user


@auth_router.delete("/users/me/")
def delete_users_me(
current_user: Annotated[User, Depends(get_current_user)],
Expand Down

0 comments on commit c3e88ee

Please sign in to comment.