fix: health endpoint /healthz (k8s convention)

This commit is contained in:
2026-06-01 18:26:41 +03:00
parent a5efb6acbc
commit 05bc449035
+2 -2
View File
@@ -8,12 +8,12 @@ class SayApp:
def add_routes(self):
self.app.add_url_rule("/", "index", self.index)
self.app.add_url_rule("/health", "health", self.health)
self.app.add_url_rule("/healthz", "healthz", self.health)
def index(self):
return render_template("index.html")
def health(self):
def healthz(self):
return jsonify({"status": "ok"})
def run(self):