Spaces:
Sleeping
Sleeping
| # app/api/router.py | |
| # Root router β aggregates all versioned API routes | |
| from fastapi import APIRouter | |
| from app.api.v1.health import router as health_router | |
| from app.api.v1.analyze import router as analyze_router | |
| from app.api.v1.history import router as history_router | |
| from app.api.v1.auth import router as auth_router | |
| from app.api.v1.users import router as users_router | |
| from app.api.v1.scan import router as scan_router | |
| from app.api.v1.alerts import router as alerts_router | |
| # Main API router | |
| api_router = APIRouter() | |
| # ββ Unauthenticated: health + raw AI pipeline ββ | |
| api_router.include_router(health_router, prefix="") | |
| api_router.include_router(analyze_router, prefix="/api/v1") | |
| api_router.include_router(history_router, prefix="/api/v1") | |
| # ββ Auth ββ | |
| api_router.include_router(auth_router, prefix="/api/v1") | |
| # ββ Authenticated business logic ββ | |
| api_router.include_router(users_router, prefix="/api/v1") | |
| api_router.include_router(scan_router, prefix="/api/v1") | |
| api_router.include_router(alerts_router, prefix="/api/v1") | |