mirror of
https://github.com/MathiasDPX/grainParisArt.git
synced 2025-01-08 00:06:38 +00:00
Add healthcheck
This commit is contained in:
parent
01c34c6729
commit
142c74e5ab
1 changed files with 4 additions and 0 deletions
4
app.py
4
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)
|
||||
|
|
Loading…
Reference in a new issue