Telezab/webui/index.py

13 lines
321 B
Python

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