mirror of
https://github.com/Manuel83/craftbeerpi3
synced 2026-09-19 15:59:07 +02:00
- Refactoring
- Action Button with Parameter - Actor Action with Parameter - Sensor Action with Parameter
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
from flask import Blueprint
|
||||
|
||||
from modules.core.core import cbpi, addon
|
||||
from modules import cbpi
|
||||
from flask_swagger import swagger
|
||||
from flask import json
|
||||
from flask import Blueprint
|
||||
|
||||
@addon.core.initializer(order=22)
|
||||
@cbpi.addon.core.initializer(order=22)
|
||||
def web(cbpi):
|
||||
|
||||
s = Blueprint('web_view', __name__, template_folder='templates', static_folder='static')
|
||||
@@ -16,4 +16,4 @@ def web(cbpi):
|
||||
|
||||
|
||||
cbpi.addon.core.add_menu_link("JQuery View", "/web_view")
|
||||
cbpi._app.register_blueprint(s, url_prefix='/web_view')
|
||||
cbpi.web.register_blueprint(s, url_prefix='/web_view')
|
||||
|
||||
Reference in New Issue
Block a user