Add /health route, v1.0.3

This commit is contained in:
2026-07-24 07:19:43 +04:00
parent f3ca2a94ea
commit 488f7a45c2
+6 -1
View File
@@ -5,7 +5,7 @@ from flask import Flask
from routes.main import bp as main_bp from routes.main import bp as main_bp
from routes.api import bp as api_bp from routes.api import bp as api_bp
VERSION = "1.0.2" VERSION = "1.0.3"
app = Flask(__name__, template_folder="templates", static_folder="static") app = Flask(__name__, template_folder="templates", static_folder="static")
app.config["NUBES_API_ENDPOINT"] = os.getenv("NUBES_API_ENDPOINT", "https://lk-api-gateway-dev.ngcloud.ru/api/v1/svc") app.config["NUBES_API_ENDPOINT"] = os.getenv("NUBES_API_ENDPOINT", "https://lk-api-gateway-dev.ngcloud.ru/api/v1/svc")
@@ -15,5 +15,10 @@ app.register_blueprint(main_bp)
app.register_blueprint(api_bp) app.register_blueprint(api_bp)
@app.route("/health")
def health():
return "OK"
if __name__ == "__main__": if __name__ == "__main__":
app.run(debug=True, host="0.0.0.0", port=5000) app.run(debug=True, host="0.0.0.0", port=5000)