From 92c70813fb270b162337c5ea03418b4457f67e73 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 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/be/app/main.py b/be/app/main.py index eca992d..3fde609 100644 --- a/be/app/main.py +++ b/be/app/main.py @@ -182,10 +182,13 @@ app.include_router( ) # Include OAuth routes -app.include_router(oauth_router, prefix="/auth", tags=["auth"]) +# 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