File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 55from backend .app .admin .api .router import v1 as admin_v1
66from backend .core .conf import settings
77
8- route = APIRouter (prefix = settings . FASTAPI_API_V1_PATH )
8+ route = APIRouter ()
99
10- route .include_router (admin_v1 )
10+ route .include_router (admin_v1 , prefix = settings . FASTAPI_API_V1_PATH )
Original file line number Diff line number Diff line change @@ -35,9 +35,9 @@ class Settings(BaseSettings):
3535 FASTAPI_TITLE : str = 'FastAPI'
3636 FASTAPI_VERSION : str = '0.0.1'
3737 FASTAPI_DESCRIPTION : str = 'FastAPI Best Architecture'
38- FASTAPI_DOCS_URL : str | None = f'{ FASTAPI_API_V1_PATH } /docs'
39- FASTAPI_REDOCS_URL : str | None = f'{ FASTAPI_API_V1_PATH } /redocs'
40- FASTAPI_OPENAPI_URL : str | None = f'{ FASTAPI_API_V1_PATH } /openapi'
38+ FASTAPI_DOCS_URL : str | None = f'/docs'
39+ FASTAPI_REDOCS_URL : str | None = f'/redocs'
40+ FASTAPI_OPENAPI_URL : str | None = f'/openapi'
4141 FASTAPI_STATIC_FILES : bool = False
4242
4343 @model_validator (mode = 'before' )
You can’t perform that action at this time.
0 commit comments