from flask import Blueprint from modules.core.core import cbpi, addon from flask_swagger import swagger from flask import json from flask import Blueprint @addon.core.initializer(order=22) def web(cbpi): s = Blueprint('webviewreact', __name__, template_folder='templates', static_folder='static') @s.route('/', methods=["GET"]) def index(): return s.send_static_file("index.html") cbpi.addon.core.add_menu_link("ReactJS View", "/webviewreact") cbpi._app.register_blueprint(s, url_prefix='/webviewreact')