diff --git a/examples/app.py b/examples/app.py index 415d86ce..af45cb1a 100644 --- a/examples/app.py +++ b/examples/app.py @@ -5,6 +5,7 @@ Use this as a starting point. """ from flask_wtf.csrf import CSRFProtect +from ereuse_devicehub.api.views import api from ereuse_devicehub.config import DevicehubConfig from ereuse_devicehub.devicehub import Devicehub from ereuse_devicehub.inventory.views import devices @@ -15,6 +16,7 @@ app = Devicehub(inventory=DevicehubConfig.DB_SCHEMA) app.register_blueprint(core) app.register_blueprint(devices) app.register_blueprint(labels) +app.register_blueprint(api) # configure & enable CSRF of Flask-WTF # NOTE: enable by blueprint to exclude API views