Skip to content

Commit 3fe0023

Browse files
authored
Update redocs arg and url to redoc (#493)
1 parent 13cee67 commit 3fe0023

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

backend/core/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class Settings(BaseSettings):
4444
FASTAPI_VERSION: str = '0.0.1'
4545
FASTAPI_DESCRIPTION: str = 'FastAPI Best Architecture'
4646
FASTAPI_DOCS_URL: str | None = '/docs'
47-
FASTAPI_REDOCS_URL: str | None = '/redocs'
47+
FASTAPI_REDOC_URL: str | None = '/redoc'
4848
FASTAPI_OPENAPI_URL: str | None = '/openapi'
4949
FASTAPI_STATIC_FILES: bool = True
5050

@@ -148,7 +148,7 @@ class Settings(BaseSettings):
148148
OPERA_LOG_PATH_EXCLUDE: list[str] = [
149149
'/favicon.ico',
150150
FASTAPI_DOCS_URL,
151-
FASTAPI_REDOCS_URL,
151+
FASTAPI_REDOC_URL,
152152
FASTAPI_OPENAPI_URL,
153153
f'{FASTAPI_API_V1_PATH}/auth/login/swagger',
154154
f'{FASTAPI_API_V1_PATH}/oauth2/github/callback',

backend/core/registrar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def register_app():
5757
version=settings.FASTAPI_VERSION,
5858
description=settings.FASTAPI_DESCRIPTION,
5959
docs_url=settings.FASTAPI_DOCS_URL,
60-
redoc_url=settings.FASTAPI_REDOCS_URL,
60+
redoc_url=settings.FASTAPI_REDOC_URL,
6161
openapi_url=settings.FASTAPI_OPENAPI_URL,
6262
default_response_class=MsgSpecJSONResponse,
6363
lifespan=register_init,

0 commit comments

Comments
 (0)