From 429ebf57cf11e9831a97fc5051427457b7117116 Mon Sep 17 00:00:00 2001 From: Carlos Quintana <74399022+cquintana92@users.noreply.github.com> Date: Thu, 1 Aug 2024 09:12:12 +0200 Subject: [PATCH] chore: add health endpoint (#2175) --- server.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server.py b/server.py index ea74d1ea..f96c3adf 100644 --- a/server.py +++ b/server.py @@ -218,6 +218,10 @@ def create_app() -> Flask: def cleanup(resp_or_exc): Session.remove() + @app.route("/health", methods=["GET"]) + def healthcheck(): + return "success", 200 + return app