отключил /docs, /redoc, /openapi.json
This commit is contained in:
8
app.py
8
app.py
@@ -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")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user