Add API GET `/v1/health`
This allows kubernetes readinessprobe can use it as index for API health
diff --git a/staffeln/api/app.py b/staffeln/api/app.py
index 87d2684..a52daba 100755
--- a/staffeln/api/app.py
+++ b/staffeln/api/app.py
@@ -34,5 +34,14 @@
return Response("False", status=401, mimetype="text/plain")
+@app.route("/v1/health", methods=["GET"])
+def health():
+ return Response(
+ "True",
+ status=200,
+ mimetype="text/plain",
+ )
+
+
def run(host, port, ssl_context):
app.run(host=host, port=port, ssl_context=ssl_context)