Create biling Blueprint

This commit is contained in:
Santiago L 2022-10-14 11:28:53 +02:00
parent 14a4e2f868
commit b06e863f91
3 changed files with 9 additions and 0 deletions

View File

View File

@ -0,0 +1,7 @@
import logging
from flask import Blueprint
billing = Blueprint('billing', __name__, url_prefix='/billing')
logger = logging.getLogger(__name__)

View File

@ -7,6 +7,7 @@ Use this as a starting point.
from decouple import config
from ereuse_devicehub.api.views import api
from ereuse_devicehub.billing.views import billing
from ereuse_devicehub.config import DevicehubConfig
from ereuse_devicehub.devicehub import Devicehub
from ereuse_devicehub.inventory.views import devices
@ -43,6 +44,7 @@ app.register_blueprint(devices)
app.register_blueprint(labels)
app.register_blueprint(api)
app.register_blueprint(workbench)
app.register_blueprint(billing)
# configure & enable CSRF of Flask-WTF
# NOTE: enable by blueprint to exclude API views