Spaces:
Running
Running
Commit ·
9dce235
1
Parent(s): c43a9f9
feat: Create the main FastAPI application factory, configuring middleware, logging, and health checks.
Browse files76 unmodified lines7778798081828325 unmodified lines10911011111211311476 unmodified lines"""Add unique request ID to each request for log correlation."""# Paths to skip logging (reduce noise)SKIP_LOG_PATHS = {"/", "/favicon.ico", "/health"}async def dispatch(self, request: Request, call_next):# Generate or use existing request ID25 unmodified lines# Health check endpoint@app.get("/", tags=["Health"])async def health_check():"""Health check endpoint to verify API is running.76 unmodified lines7778798081828325 unmodified lines10911011111211311411576 unmodified lines"""Add unique request ID to each request for log correlation."""# Paths to skip logging (reduce noise)SKIP_LOG_PATHS = {"/", "/favicon.ico", "/api/health"}async def dispatch(self, request: Request, call_next):# Generate or use existing request ID25 unmodified lines# Health check endpoint@app.get("/", tags=["Health"])@app.get("/api/health", tags=["Health"])async def health_check():"""Health check endpoint to verify API is running.
src/app.py+2-1