Skip to content

Commit bbaa3bb

Browse files
committed
Adding healthcheck
1 parent 055a2e7 commit bbaa3bb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

conditional/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,14 @@ def logout():
149149
return redirect("/", 302)
150150

151151

152+
@app.route("/health")
153+
def health():
154+
"""
155+
Shows an ok status if the application is up and running
156+
"""
157+
return {'status': 'ok'}
158+
159+
152160
@app.errorhandler(404)
153161
@app.errorhandler(500)
154162
@auth.oidc_auth

0 commit comments

Comments
 (0)