отключил /docs, /redoc, /openapi.json

This commit is contained in:
2026-04-23 17:56:38 +03:00
parent 26621308fe
commit 9e80041a09

8
app.py
View File

@@ -113,7 +113,13 @@ from services.vmix_json_service import (
from scheduler import run_scheduler from scheduler import run_scheduler
BASE_DIR = Path(__file__).resolve().parent BASE_DIR = Path(__file__).resolve().parent
app = FastAPI() app = FastAPI(
docs_url=None, # ❌ отключает /docs
redoc_url=None, # ❌ отключает /redoc
openapi_url=None, # ❌ отключает /openapi.json
)
templates = Jinja2Templates(directory=str(BASE_DIR / "templates")) templates = Jinja2Templates(directory=str(BASE_DIR / "templates"))
app.mount("/static", StaticFiles(directory=str(BASE_DIR / "static")), name="static") app.mount("/static", StaticFiles(directory=str(BASE_DIR / "static")), name="static")