From e57e2fd4601e85baeacd990be32eaf511cf90f19 Mon Sep 17 00:00:00 2001 From: wailbentafat Date: Sun, 31 May 2026 23:56:50 +0100 Subject: [PATCH] chore: disable API docs and openapi schema in production --- app/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/main.py b/app/main.py index d361189..1e06dcb 100644 --- a/app/main.py +++ b/app/main.py @@ -89,6 +89,9 @@ async def lifespan(app: FastAPI) -> AsyncIterator[None]: description="Mobile and Web API for multAI", version="1.0.0", lifespan=lifespan, + docs_url="/docs" if settings.debug else None, + redoc_url="/redoc" if settings.debug else None, + openapi_url="/openapi.json" if settings.debug else None, )