Create biling Blueprint
This commit is contained in:
parent
14a4e2f868
commit
b06e863f91
|
@ -0,0 +1,7 @@
|
||||||
|
import logging
|
||||||
|
|
||||||
|
from flask import Blueprint
|
||||||
|
|
||||||
|
billing = Blueprint('billing', __name__, url_prefix='/billing')
|
||||||
|
|
||||||
|
logger = logging.getLogger(__name__)
|
|
@ -7,6 +7,7 @@ Use this as a starting point.
|
||||||
from decouple import config
|
from decouple import config
|
||||||
|
|
||||||
from ereuse_devicehub.api.views import api
|
from ereuse_devicehub.api.views import api
|
||||||
|
from ereuse_devicehub.billing.views import billing
|
||||||
from ereuse_devicehub.config import DevicehubConfig
|
from ereuse_devicehub.config import DevicehubConfig
|
||||||
from ereuse_devicehub.devicehub import Devicehub
|
from ereuse_devicehub.devicehub import Devicehub
|
||||||
from ereuse_devicehub.inventory.views import devices
|
from ereuse_devicehub.inventory.views import devices
|
||||||
|
@ -43,6 +44,7 @@ app.register_blueprint(devices)
|
||||||
app.register_blueprint(labels)
|
app.register_blueprint(labels)
|
||||||
app.register_blueprint(api)
|
app.register_blueprint(api)
|
||||||
app.register_blueprint(workbench)
|
app.register_blueprint(workbench)
|
||||||
|
app.register_blueprint(billing)
|
||||||
|
|
||||||
# configure & enable CSRF of Flask-WTF
|
# configure & enable CSRF of Flask-WTF
|
||||||
# NOTE: enable by blueprint to exclude API views
|
# NOTE: enable by blueprint to exclude API views
|
||||||
|
|
Reference in New Issue