You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
584B

  1. from flask import Blueprint
  2. from modules.core.core import cbpi, addon
  3. from flask_swagger import swagger
  4. from flask import json
  5. from flask import Blueprint
  6. import logging
  7. @addon.core.initializer(order=22)
  8. def web(cbpi):
  9. logger = logging.getLogger(__name__)
  10. s = Blueprint('web_view', __name__, template_folder='templates', static_folder='static')
  11. @s.route('/', methods=["GET"])
  12. def index():
  13. return s.send_static_file("index.html")
  14. cbpi.addon.core.add_menu_link("JQuery View", "/web_view")
  15. cbpi._app.register_blueprint(s, url_prefix='/web_view')