This commit is contained in:
2025-03-03 02:54:33 +03:00
parent 528bb601c5
commit 0898d92fc7
5 changed files with 79 additions and 40 deletions

View File

@@ -1,10 +1,11 @@
from flask import Response
from proxy import app
@app.route("/health")
def healthcheck():
"""Health check route to monitor service status"""
try:
return Response("OK", status=200)
except Exception as e:
return f"Error: {e}", 500
def init_healthcheck(app):
@app.route("/health")
def healthcheck():
"""Health check route to monitor service status"""
try:
return Response("healthy", status=200)
except Exception as e:
return f"Error: {e}", 500