12 lines
308 B
Python
Executable File
12 lines
308 B
Python
Executable File
from flask import Response
|
|
|
|
|
|
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
|