From 9e43cee86cb96b5aa6805565a68b21ce522630e8 Mon Sep 17 00:00:00 2001 From: Ian Adam Naval Date: Mon, 21 Jan 2019 23:52:16 -0500 Subject: [PATCH] Add a health check endpoint --- autopilot/app.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/autopilot/app.py b/autopilot/app.py index 8b14c51..b1ed486 100644 --- a/autopilot/app.py +++ b/autopilot/app.py @@ -11,6 +11,11 @@ logging.config.dictConfig(LOGGING_CONFIG) app = flask.Flask(__name__) +@app.route('/') +def health(): + return "It works!" + + @app.route('/schedule.ics') def main(): reservations = get_reservations()