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.

20 line
526B

  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. @addon.core.initializer(order=22)
  7. def web(cbpi):
  8. s = Blueprint('web_view', __name__, template_folder='templates', static_folder='static')
  9. @s.route('/', methods=["GET"])
  10. def index():
  11. return s.send_static_file("index.html")
  12. cbpi.addon.core.add_menu_link("JQuery View", "/web_view")
  13. cbpi._app.register_blueprint(s, url_prefix='/web_view')