from fastapi import FastAPI from app.core.config import settings from app.routers import categories, documents app = FastAPI(title=settings.PROJECT_NAME) # No CORS — this service is only reachable from the main backend on backend-net. # All browser traffic goes through the main backend proxy. app.include_router(documents.router, prefix="/documents", tags=["documents"]) app.include_router(categories.router, prefix="/categories", tags=["categories"]) @app.get("/health") def health(): return {"status": "ok"}