refac: disable openapi.json

This commit is contained in:
Timothy Jaeryang Baek
2024-11-09 18:01:23 -08:00
parent 7228b39064
commit 96c865404d
7 changed files with 19 additions and 11 deletions

View File

@@ -182,7 +182,7 @@ async def lifespan(app: FastAPI):
app = FastAPI(
docs_url="/docs" if ENV == "dev" else None, redoc_url=None, lifespan=lifespan
docs_url="/docs" if ENV == "dev" else None, openapi_url="/openapi.json" if ENV == "dev" else None, redoc_url=None, lifespan=lifespan
)
app.state.config = AppConfig()