Browse Source

Adding a simple health endpoint to rollbot

Kirk Trombley 5 years ago
parent
commit
af00e4b0c5
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/app.py

+ 5 - 0
src/app.py

@@ -60,5 +60,10 @@ def execute():
     return "", 204
 
 
+@app.route("/health")
+def health():
+    return "Rollbot healthy!", 200
+
+
 if __name__ == "__main__":
     app.run(host="0.0.0.0", port=6070)