diff --git a/README.md b/README.md index c90c344..ffa62c7 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Slack Template +# Nephthys This is a Slack template for creating a great Slack app using Python and Starlette. diff --git a/nephthys/utils/starlette.py b/nephthys/utils/starlette.py index 0456b4b..67d66d4 100644 --- a/nephthys/utils/starlette.py +++ b/nephthys/utils/starlette.py @@ -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, } )