from flask import Flask, jsonify, render_template app = Flask(__name__) @app.route("/") def index(): """ Renders the main page. """ return render_template("index.html") @app.route("/health") def health(): """ Health check endpoint. """ return jsonify({"status": "ok"}), 200 if __name__ == "__main__": app.run(debug=True)