Merge pull request 'Refactor API routing and update login URLs' (#47) from ph4 into prod

Reviewed-on: #47
This commit is contained in:
mo 2025-06-01 22:38:08 +02:00
commit f60002d98e
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -39,7 +39,7 @@ import { useRouter } from 'vue-router';
const router = useRouter();
const handleGoogleLogin = () => {
window.location.href = '/auth/google/login';
window.location.href = '/api/v1/auth/google/login';
};
const handleAppleLogin = () => {