Skip to content

Commit c9cdf72

Browse files
maxeodevclaude
andcommitted
feat: expose version in /health endpoint
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent a38f729 commit c9cdf72

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

app/main.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ async def lifespan(app: FastAPI):
1616
yield
1717

1818

19-
app = FastAPI(title="AtomicWatch", lifespan=lifespan)
19+
APP_VERSION = "0.2.8"
20+
21+
app = FastAPI(title="AtomicWatch", version=APP_VERSION, lifespan=lifespan)
2022

2123

2224
@app.get("/health")
2325
async def health():
24-
return {"status": "ok"}
26+
return {"status": "ok", "version": APP_VERSION}
2527

2628

2729
app.include_router(router, prefix="/api")

0 commit comments

Comments
 (0)