update health endpoint

This commit is contained in:
Amber 2025-06-14 19:08:23 +01:00
parent 0204381ceb
commit e674886847
No known key found for this signature in database
GPG key ID: 81E4B6CCB9561611
2 changed files with 4 additions and 1 deletions

View file

@ -1,4 +1,4 @@
# Slack Template
# Nephthys
This is a Slack template for creating a great Slack app using Python and Starlette.

View file

@ -23,10 +23,13 @@ async def health(req: Request):
except Exception:
slack_healthy = False
db_healthy = env.db.is_connected()
return JSONResponse(
{
"healthy": slack_healthy,
"slack": slack_healthy,
"database": db_healthy,
}
)