Initial commit
This commit is contained in:
10
proxy/healthcheck.py
Executable file
10
proxy/healthcheck.py
Executable file
@@ -0,0 +1,10 @@
|
||||
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
|
||||
Reference in New Issue
Block a user