From dbbf5f9efc255af93ce4f098667442e396bfce06 Mon Sep 17 00:00:00 2001 From: Manish Kumar Date: Sat, 12 Sep 2026 20:06:30 -0500 Subject: [PATCH] fix(docs): set root_path so /_svc/audit/docs renders Same missing-root_path bug as auth-service and (originally) toolserver: FastAPI's default /docs page requests openapi.json relative to the site root unless root_path is set, so behind nginx-router's prefix-stripping proxy at /_svc/audit, Swagger UI fetched the Studio SPA's index.html instead of the spec. See omnibioai-studio#82. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_011MvEwFRKwmMy94dReYy9LL --- api/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/main.py b/api/main.py index d5d278d..c528a0b 100644 --- a/api/main.py +++ b/api/main.py @@ -5,7 +5,7 @@ from api.routes_audit_safe import router as audit_safe_router from audit.config import AuditConfig -app = FastAPI(title=f"OmniBioAI Security Audit — {AuditConfig.SERVICE_NAME}") +app = FastAPI(title=f"OmniBioAI Security Audit — {AuditConfig.SERVICE_NAME}", root_path="/_svc/audit") app.include_router(router) app.include_router(audit_events_router)