feat(health): expose app version in GET /health (#717) #719
1 changed files with 5 additions and 1 deletions
|
|
@ -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,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue