22 lines
303 B
Python
22 lines
303 B
Python
from fastapi import FastAPI
|
|
|
|
from core.api.routes import router
|
|
|
|
|
|
app = FastAPI(
|
|
title="Telecom CDR Ingestion API",
|
|
version="0.1.0",
|
|
)
|
|
|
|
|
|
app.include_router(
|
|
router,
|
|
prefix="/api/v1",
|
|
)
|
|
|
|
|
|
@app.get("/health")
|
|
async def health() -> dict[str, str]:
|
|
return {
|
|
"status": "ok",
|
|
} |