Фиксы

This commit is contained in:
2025-09-24 04:27:08 +03:00
parent 967bb8d936
commit 178f3a8925
5 changed files with 83 additions and 93 deletions

View File

@ -7,8 +7,8 @@ from core.config import settings
def get_openapi_schema(router: APIRouter):
# if not settings.DEBUG:
# return None
if not settings.DEBUG:
return None
return ORJSONResponse(
get_openapi(
@ -31,8 +31,8 @@ def get_openapi_schema(router: APIRouter):
def get_swagger_html(router: APIRouter):
# if not settings.DEBUG:
# return None
if not settings.DEBUG:
return None
return get_swagger_ui_html(
openapi_url=f'{router.prefix}/openapi.json',