Files
asf/services/asf-core/app/api/v1/router.py
T
2026-09-08 07:21:34 -04:00

28 lines
1.4 KiB
Python

"""Top-level /api/v1 router. Mounts every sub-router in the correct order."""
from fastapi import APIRouter
from .health import router as health_router
from .organizations import router as org_router
from .projects import router as project_router
from .artifacts import router as artifact_router
from .relationships import router as rel_router
from .jobs import router as jobs_router
from .overview import router as overview_router
from .audit import router as audit_router
from .traceability import router as traceability_router
from .ask_asf import router as ask_asf_router
api_v1_router = APIRouter()
api_v1_router.include_router(health_router, tags=["health"])
api_v1_router.include_router(org_router, prefix="/organizations", tags=["organizations"])
api_v1_router.include_router(project_router, prefix="/projects", tags=["projects"])
api_v1_router.include_router(artifact_router, prefix="/artifacts", tags=["artifacts"])
api_v1_router.include_router(rel_router, prefix="/relationships", tags=["relationships"])
api_v1_router.include_router(jobs_router, prefix="/jobs", tags=["jobs"])
api_v1_router.include_router(overview_router, prefix="/overview", tags=["overview"])
api_v1_router.include_router(traceability_router, prefix="/traceability", tags=["traceability"])
api_v1_router.include_router(audit_router, prefix="/audit", tags=["audit"])
api_v1_router.include_router(ask_asf_router, prefix="/ask-asf", tags=["ask-asf"])