13 lines
592 B
Python
13 lines
592 B
Python
from fastapi import APIRouter, Security
|
|
|
|
from app.api.security import bearer_scheme
|
|
from app.api.v1.endpoints import auth, health, providers, reports, runs
|
|
|
|
api_router = APIRouter()
|
|
api_router.include_router(health.router, tags=["system"])
|
|
api_router.include_router(auth.router, tags=["authentication"])
|
|
protected = [Security(bearer_scheme)]
|
|
api_router.include_router(providers.router, tags=["providers"], dependencies=protected)
|
|
api_router.include_router(runs.router, tags=["runs"], dependencies=protected)
|
|
api_router.include_router(reports.router, tags=["reports"], dependencies=protected)
|