File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -35,16 +35,16 @@ class Settings(BaseSettings):
35
35
FASTAPI_TITLE : str = 'FastAPI'
36
36
FASTAPI_VERSION : str = '0.0.1'
37
37
FASTAPI_DESCRIPTION : str = 'FastAPI Best Architecture'
38
- FASTAPI_DOCS_URL : str | None = '/docs'
39
- FASTAPI_REDOCS_URL : str | None = '/redocs '
38
+ FASTAPI_DOCS_URL : str = '/docs'
39
+ FASTAPI_REDOC_URL : str = '/redoc '
40
40
FASTAPI_OPENAPI_URL : str | None = '/openapi'
41
41
FASTAPI_STATIC_FILES : bool = False
42
42
43
43
@model_validator (mode = 'before' )
44
44
@classmethod
45
45
def validator_api_url (cls , values ):
46
46
if values ['ENVIRONMENT' ] == 'pro' :
47
- values ['OPENAPI_URL ' ] = None
47
+ values ['FASTAPI_OPENAPI_URL ' ] = None
48
48
values ['FASTAPI_STATIC_FILES' ] = False
49
49
return values
50
50
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ def register_app():
50
50
version = settings .FASTAPI_VERSION ,
51
51
description = settings .FASTAPI_DESCRIPTION ,
52
52
docs_url = settings .FASTAPI_DOCS_URL ,
53
- redoc_url = settings .FASTAPI_REDOCS_URL ,
53
+ redoc_url = settings .FASTAPI_REDOC_URL ,
54
54
openapi_url = settings .FASTAPI_OPENAPI_URL ,
55
55
lifespan = register_init ,
56
56
)
You can’t perform that action at this time.
0 commit comments