fix: health endpoint /healthz (k8s convention)
This commit is contained in:
+2
-2
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user