From bb2551242fa07f043dbc82a1cd127a8a2aa38ad9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=AE=D1=80=D0=B8=D0=B9=20=D0=A7=D0=B5=D1=80=D0=BD=D0=B5?= =?UTF-8?q?=D0=BD=D0=BA=D0=BE?= Date: Thu, 6 Nov 2025 11:55:28 +0300 Subject: [PATCH] =?UTF-8?q?=D1=81=D0=BA=D1=80=D1=8B=D0=BB=D0=B8=20docs=20?= =?UTF-8?q?=D0=B8=20=D1=82=D0=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- get_data.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/get_data.py b/get_data.py index 15f6e8a..f1322b0 100644 --- a/get_data.py +++ b/get_data.py @@ -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: