from fastapi import FastAPI from app.api.routes import router as api_router from app.core.config import settings app = FastAPI( title=settings.PROJECT_NAME, openapi_url=f"{settings.API_V1_STR}/openapi.json", docs_url="/docs", redoc_url="/redoc" ) # Include API router with the version prefix app.include_router(api_router, prefix=settings.API_V1_STR) @app.get("/health", tags=["health"]) async def health_check(): return {"status": "ok"}