Skip to content

Commit f602ab0

Browse files
committed
add healthcheck route
1 parent 223b3cf commit f602ab0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ def hello():
2727
print('Request for hello page received with no name or blank name -- redirecting')
2828
return redirect(url_for('index'))
2929

30+
@app.route('/healthcheck', methods=['GET'])
31+
def healthcheck():
32+
print('Healthcheck request')
33+
return render_template('hello.html', name = 'healthcheck')
34+
3035

3136
if __name__ == '__main__':
3237
app.run()

0 commit comments

Comments
 (0)