From e92c788e3d58fbb338c5ea42652294932607100a Mon Sep 17 00:00:00 2001 From: bruno Date: Sun, 12 Jul 2026 10:28:51 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20health=20endpoint=20utilise=20request.ap?= =?UTF-8?q?p.version=20au=20lieu=20de=20version=20hardcod=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/routers/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/routers/api.py b/app/routers/api.py index a79e868..36e928a 100644 --- a/app/routers/api.py +++ b/app/routers/api.py @@ -39,7 +39,7 @@ def _check_rate_limit(request: Request) -> bool: @router.get("/health") -async def health(): +async def health(request: Request): """Health check: DB + Gitea connectivity.""" db_ok = False gitea_ok = False @@ -57,7 +57,7 @@ async def health(): return { "status": "ok" if (db_ok and gitea_ok) else "degraded", - "version": "2.1.0", + "version": request.app.version, "db": db_ok, "gitea": gitea_ok, }