скрыли docs и тп
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user