скрыли docs и тп

This commit is contained in:
2025-11-06 11:55:28 +03:00
parent ffe9d357d5
commit bb2551242f

View File

@@ -1000,7 +1000,12 @@ async def lifespan(app: FastAPI):
thread_status_broadcaster.join(timeout=1)
app = FastAPI(lifespan=lifespan)
app = FastAPI(
lifespan=lifespan,
docs_url=None, # ❌ отключает /docs
redoc_url=None, # ❌ отключает /redoc
openapi_url=None # ❌ отключает /openapi.json
)
def format_time(seconds: float | int) -> str: