From 142c74e5ab8db960a2486bc4c838a4833b807664 Mon Sep 17 00:00:00 2001 From: MathiasDPX <56231137+MathiasDPX@users.noreply.github.com> Date: Thu, 24 Oct 2024 11:57:36 +0200 Subject: [PATCH] Add healthcheck --- app.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app.py b/app.py index 80761cd..34e51e4 100644 --- a/app.py +++ b/app.py @@ -103,6 +103,10 @@ def translateDay(weekday: int): case 6: return "dim" case _: return "???" +@app.route('/health') +def health(): + return "OK" + @app.route('/') def home(): delta = request.args.get("delta", default=0, type=int)