-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
Description
It's a common practice to have a simple endpoint that can be used to verify that the service is running.
Task: Add a /health route to main.py that returns a simple JSON response with a 200 OK status.
# ...existing code...
@app.route("/health", methods=["GET"])
def health_check():
"""Health check endpoint to verify the service is running."""
return jsonify({"status": "ok"}), 200
if __name__ == "__main__":
app.run(debug=True, port=os.getenv("PORT", default=5000))