From 79672cc9ff8357de4878eb7783851327f0b0c59f Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Fri, 8 Apr 2022 16:52:17 +0200 Subject: [PATCH] add register api --- examples/app.py | 2 ++ 1 file changed, 2 insertions(+) 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