mirror of
https://github.com/System-End/nephthys.git
synced 2026-04-19 19:45:12 +00:00
update health endpoint
This commit is contained in:
parent
0204381ceb
commit
e674886847
2 changed files with 4 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
|||
# Slack Template
|
||||
# Nephthys
|
||||
|
||||
This is a Slack template for creating a great Slack app using Python and Starlette.
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
}
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue