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:
parent
2d16116716
commit
6b54566cef
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user