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.
This commit is contained in:
mohamad 2025-06-01 22:37:44 +02:00
parent 9d404d04d5
commit ec361fe9ab

View File

@ -184,8 +184,14 @@ app.include_router(
tags=["users"], tags=["users"],
) )
# Include OAuth routes
# app.include_router(oauth_router, prefix="/auth", tags=["auth"])
# Include your API router # Include your API router
app.include_router(api_router, prefix=settings.API_PREFIX) 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 --- # --- End Include API Routers ---
# Health check endpoint # Health check endpoint