mirror of
https://github.com/MathiasDPX/grainParisArt.git
synced 2025-01-09 00:26:38 +00:00
Add healthcheck
This commit is contained in:
parent
0cf51aa2c3
commit
2dc1da3ec2
1 changed files with 4 additions and 0 deletions
4
app.py
4
app.py
|
@ -75,6 +75,10 @@ def translate_day(weekday: int) -> str:
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
|
||||||
|
@app.route('/healthcheck')
|
||||||
|
def healthcheck():
|
||||||
|
return 'ok'
|
||||||
|
|
||||||
@app.route('/')
|
@app.route('/')
|
||||||
def home():
|
def home():
|
||||||
delta = request.args.get("delta", default=0, type=int)
|
delta = request.args.get("delta", default=0, type=int)
|
||||||
|
|
Loading…
Reference in a new issue