from fastapi import FastAPI from velodrome.api.v1.router import router as v1_router from velodrome.config import get_settings def create_app() -> FastAPI: settings = get_settings() app = FastAPI( title="Velodrome", version="0.1.0", # Committed to packages/openapi/openapi.json — CI's openapi-drift job (added once that # job has real code to check) regenerates this and diffs it, so the contract can never # silently drift from what's actually deployed. openapi_url="/api/v1/openapi.json", docs_url="/api/v1/docs" if settings.environment != "production" else None, ) app.include_router(v1_router) return app app = create_app()