from flask import Blueprint, render_template, jsonify webui = Blueprint('webui', __name__, url_prefix='/telezab') @webui.route("/heartbeat") def heartbeat(): return jsonify({"status": "healthy"}) @webui.route('/', defaults={'path': ''}) @webui.route('/') def catch_all(path): return webui.send_static_file("index.html")