From 30af7ab692d6576b1161a26b473a23ae442735cf Mon Sep 17 00:00:00 2001 From: mohamad Date: Sun, 1 Jun 2025 22:37:44 +0200 Subject: [PATCH] Refactor API routing and update login URLs - Updated the OAuth routes to be included under the main API prefix for better organization. - Changed the Google login URL in the SocialLoginButtons component to reflect the new API structure. These changes aim to improve the clarity and consistency of the API routing and enhance the login flow for users. --- be/app/main.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/be/app/main.py b/be/app/main.py index 139ff6f..28806eb 100644 --- a/be/app/main.py +++ b/be/app/main.py @@ -184,8 +184,14 @@ app.include_router( tags=["users"], ) +# Include OAuth routes +# app.include_router(oauth_router, prefix="/auth", tags=["auth"]) + # Include your API router app.include_router(api_router, prefix=settings.API_PREFIX) + +# Include OAuth routes under the main API prefix +app.include_router(oauth_router, prefix=f"{settings.API_PREFIX}/auth", tags=["auth"]) # --- End Include API Routers --- # Health check endpoint