File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 22# -*- coding: utf-8 -*-
33from backend .common .i18n import i18n
44
5- __version__ = '1.8.0 '
5+ __version__ = '1.8.1 '
66
77
88# 初始化 i18n
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ class Settings(BaseSettings):
2525 # FastAPI
2626 FASTAPI_API_V1_PATH : str = '/api/v1'
2727 FASTAPI_TITLE : str = 'FastAPI'
28- FASTAPI_VERSION : str = '1.5.0'
2928 FASTAPI_DESCRIPTION : str = 'FastAPI Best Architecture'
3029 FASTAPI_DOCS_URL : str = '/docs'
3130 FASTAPI_REDOC_URL : str = '/redoc'
Original file line number Diff line number Diff line change 1717from starlette .staticfiles import StaticFiles
1818from starlette .types import ASGIApp
1919
20+ from backend import __version__
2021from backend .common .exception .exception_handler import register_exception
2122from backend .common .log import set_custom_logfile , setup_logging
2223from backend .core .conf import settings
@@ -85,7 +86,7 @@ def build_middleware_stack(self) -> ASGIApp:
8586
8687 app = MyFastAPI (
8788 title = settings .FASTAPI_TITLE ,
88- version = settings . FASTAPI_VERSION ,
89+ version = __version__ ,
8990 description = settings .FASTAPI_DESCRIPTION ,
9091 docs_url = settings .FASTAPI_DOCS_URL ,
9192 redoc_url = settings .FASTAPI_REDOC_URL ,
You can’t perform that action at this time.
0 commit comments