13 lines
342 B
Python
13 lines
342 B
Python
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('/<path:path>')
|
|
def catch_all(path):
|
|
return webui.send_static_file("index.html") |