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, }