Browse Source

Add a health check endpoint

Ian Adam Naval 2 years ago
parent
commit
9e43cee86c
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      autopilot/app.py

+ 5
- 0
autopilot/app.py View File

@@ -11,6 +11,11 @@ logging.config.dictConfig(LOGGING_CONFIG)
11 11
 app = flask.Flask(__name__)
12 12
 
13 13
 
14
+@app.route('/')
15
+def health():
16
+    return "It works!"
17
+
18
+
14 19
 @app.route('/schedule.ics')
15 20
 def main():
16 21
     reservations = get_reservations()

Loading…
Cancel
Save