20 lines
481 B
Python
20 lines
481 B
Python
"""Route registration for the data-ingestion service."""
|
|
|
|
from fastapi import FastAPI
|
|
|
|
from . import apillama, health, metrics, openapi, rapidapi, stats, tools
|
|
|
|
|
|
def register_routes(app: FastAPI) -> None:
|
|
"""Attach all routers to the FastAPI app."""
|
|
for router in (
|
|
health.router,
|
|
rapidapi.router,
|
|
openapi.router,
|
|
apillama.router,
|
|
tools.router,
|
|
stats.router,
|
|
metrics.router,
|
|
):
|
|
app.include_router(router)
|