Add healthcheck

This commit is contained in:
MathiasDPX 2024-10-24 11:57:36 +02:00 committed by GitHub
parent 01c34c6729
commit 142c74e5ab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

4
app.py
View file

@ -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)