Explorar o código

Merge branch 'health-endpoint' of kirkleon/rollbot3 into master

kirkleon %!s(int64=5) %!d(string=hai) anos
pai
achega
2ab2512aa3
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  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)