31 lines
817 B
Python
31 lines
817 B
Python
"""API v1 router — aggregates all sub-routers."""
|
|
|
|
from fastapi import APIRouter
|
|
|
|
from app.api.v1.auth import router as auth_router
|
|
from app.api.v1.documents import router as documents_router
|
|
from app.api.v1.health import router as health_router
|
|
|
|
router = APIRouter(prefix="/api/v1")
|
|
|
|
# Auth
|
|
router.include_router(auth_router)
|
|
|
|
# Documents
|
|
router.include_router(documents_router)
|
|
|
|
# Assets
|
|
from app.api.v1.assets import router as assets_router
|
|
router.include_router(assets_router)
|
|
|
|
# Annotations
|
|
from app.api.v1.annotations import router as annotations_router
|
|
router.include_router(annotations_router)
|
|
|
|
# Health (unauthenticated)
|
|
router.include_router(health_router)
|
|
|
|
from app.config import settings
|
|
if settings.DEBUG:
|
|
from app.api.v1.debug import router as debug_router
|
|
router.include_router(debug_router)
|