Enable labels Blueprint on examples/app.py

This commit is contained in:
Santiago L 2022-04-04 13:41:36 +02:00
parent 7a532fb02c
commit 960a4dc85f
1 changed files with 2 additions and 0 deletions

View File

@ -8,11 +8,13 @@ from flask_wtf.csrf import CSRFProtect
from ereuse_devicehub.config import DevicehubConfig
from ereuse_devicehub.devicehub import Devicehub
from ereuse_devicehub.inventory.views import devices
from ereuse_devicehub.labels.views import labels
from ereuse_devicehub.views import core
app = Devicehub(inventory=DevicehubConfig.DB_SCHEMA)
app.register_blueprint(core)
app.register_blueprint(devices)
app.register_blueprint(labels)
# configure & enable CSRF of Flask-WTF
# NOTE: enable by blueprint to exclude API views