From e29154518b3db5135595e383634b0eb98f5fdc5a Mon Sep 17 00:00:00 2001 From: gouki Date: Sat, 1 Aug 2026 13:54:22 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20health=20=E6=8E=A5=E5=8F=A3=E5=8A=A8?= =?UTF-8?q?=E6=80=81=E8=BF=94=E5=9B=9E=E7=89=88=E6=9C=AC=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/main.py b/app/main.py index a0a759b..5212efc 100644 --- a/app/main.py +++ b/app/main.py @@ -14,10 +14,10 @@ async def lifespan(_: FastAPI): yield -app = FastAPI(title="VPS 资产管理系统", version="0.1.1", lifespan=lifespan) +app = FastAPI(title="VPS 资产管理系统", version="0.1.2", lifespan=lifespan) @app.get("/health") def health_check() -> dict: - """健康检查""" - return {"status": "ok", "app": "vps-manager", "version": "0.1.0"} + """健康检查(version 动态读取,便于验证自动更新)""" + return {"status": "ok", "app": "vps-manager", "version": app.version}