mirror of
https://github.com/fastapi-practices/fastapi-best-architecture.git
synced 2026-09-21 21:15:13 +00:00
Update redocs arg and url to redoc (#493)
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user