Update redocs arg and url to redoc (#493)

This commit is contained in:
Wu Clan
2025-01-17 16:06:30 +08:00
committed by GitHub
parent 13cee674a7
commit 3fe0023a0a
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -44,7 +44,7 @@ class Settings(BaseSettings):
FASTAPI_VERSION: str = '0.0.1'
FASTAPI_DESCRIPTION: str = 'FastAPI Best Architecture'
FASTAPI_DOCS_URL: str | None = '/docs'
FASTAPI_REDOCS_URL: str | None = '/redocs'
FASTAPI_REDOC_URL: str | None = '/redoc'
FASTAPI_OPENAPI_URL: str | None = '/openapi'
FASTAPI_STATIC_FILES: bool = True
@@ -148,7 +148,7 @@ class Settings(BaseSettings):
OPERA_LOG_PATH_EXCLUDE: list[str] = [
'/favicon.ico',
FASTAPI_DOCS_URL,
FASTAPI_REDOCS_URL,
FASTAPI_REDOC_URL,
FASTAPI_OPENAPI_URL,
f'{FASTAPI_API_V1_PATH}/auth/login/swagger',
f'{FASTAPI_API_V1_PATH}/oauth2/github/callback',
+1 -1
View File
@@ -57,7 +57,7 @@ def register_app():
version=settings.FASTAPI_VERSION,
description=settings.FASTAPI_DESCRIPTION,
docs_url=settings.FASTAPI_DOCS_URL,
redoc_url=settings.FASTAPI_REDOCS_URL,
redoc_url=settings.FASTAPI_REDOC_URL,
openapi_url=settings.FASTAPI_OPENAPI_URL,
default_response_class=MsgSpecJSONResponse,
lifespan=register_init,