diff --git a/backend/api/authentication.py b/backend/api/authentication.py index 927d8cd..051a155 100644 --- a/backend/api/authentication.py +++ b/backend/api/authentication.py @@ -50,7 +50,7 @@ def registered_user( ) @auth_router.post("/api/authentication", tags=["Authentication"]) -def login(user_id: str, user_service: UserService = Depends()): +def return_bearer_token(user_id: str, user_service: UserService = Depends()): user = user_service.get_user_by_id(user_id) if not user: raise HTTPException( @@ -62,5 +62,5 @@ def login(user_id: str, user_service: UserService = Depends()): return {"access_token": access_token} @auth_router.get("/api/authentication", tags=["Authentication"]) -def userGet(user_service: UserService = Depends()): +def get_user_id(user_service: UserService = Depends()): return user_service.all() \ No newline at end of file diff --git a/backend/main.py b/backend/main.py index 3ddc472..99a1728 100644 --- a/backend/main.py +++ b/backend/main.py @@ -19,7 +19,8 @@ app = FastAPI( health.openapi_tags, service.openapi_tags, resource.openapi_tags, - tag.openapi_tags + tag.openapi_tags, + authentication.openapi_tags ], )