From d07d10f1dfe077fc69707012cf3f2d63e7ff611b Mon Sep 17 00:00:00 2001 From: bot-backend Date: Sat, 30 May 2026 15:13:03 +0300 Subject: [PATCH] feat(health): expose app version in GET /health MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Surface the deployed app version (app.version, = pyproject 0.1.0) in the health response for observability. Reuses the FastAPI instance attribute — no new settings field, no runtime pyproject parsing. Refs #717 --- backend/app/main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/app/main.py b/backend/app/main.py index 93ec4b83..1648033b 100644 --- a/backend/app/main.py +++ b/backend/app/main.py @@ -172,4 +172,8 @@ app.include_router(ping.router, prefix="/api/v1", tags=["ping"]) @app.get("/health") async def health() -> dict[str, str]: - return {"status": "ok", "environment": settings.environment} + return { + "status": "ok", + "environment": settings.environment, + "version": app.version, + }