Skip to content

Commit cd76c95

Browse files
authored
Update app.py
1 parent 4d9da56 commit cd76c95

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

‎app.py‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,19 @@
77
def hello():
88
return "Hello World!"
99

10+
11+
@app.route('/healthy')
12+
def health():
13+
return ""
14+
15+
16+
@app.route('/fail')
17+
def failing():
18+
abort(404)
19+
20+
1021
if __name__ == '__main__':
1122
port = os.environ.get('FLASK_PORT') or 8080
1223
port = int(port)
1324

14-
app.run(port=port,host='0.0.0.0')
25+
app.run(port=port,host='0.0.0.0')

0 commit comments

Comments
 (0)