From c5b668f4e188ed6eee94436b5d79fa8b2ccf29a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Sat, 5 Sep 2026 08:03:32 +0300 Subject: [PATCH] Add /health endpoint, disable debug (v0.1.1) --- site/app.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/site/app.py b/site/app.py index 7c53618..22caa6b 100644 --- a/site/app.py +++ b/site/app.py @@ -1,7 +1,7 @@ from flask import Flask, render_template -VERSION = "0.1.0" +VERSION = "0.1.1" app = Flask(__name__, template_folder="templates", static_folder="static") @@ -11,5 +11,10 @@ def index(): return render_template("index.html", version=VERSION) +@app.route("/health") +def health(): + return "ok", 200 + + if __name__ == "__main__": - app.run(debug=True, host="0.0.0.0", port=5000) \ No newline at end of file + app.run(debug=False, host="0.0.0.0", port=5000) \ No newline at end of file