2018-07-17 18:57:29 +00:00
|
|
|
"""
|
|
|
|
Example app with minimal configuration.
|
|
|
|
|
|
|
|
Use this as a starting point.
|
|
|
|
"""
|
2022-07-12 11:31:38 +00:00
|
|
|
|
2022-07-15 10:10:10 +00:00
|
|
|
from decouple import config
|
2022-01-17 11:55:42 +00:00
|
|
|
|
2022-04-08 14:52:17 +00:00
|
|
|
from ereuse_devicehub.api.views import api
|
2022-01-17 11:55:42 +00:00
|
|
|
from ereuse_devicehub.config import DevicehubConfig
|
|
|
|
from ereuse_devicehub.devicehub import Devicehub
|
|
|
|
from ereuse_devicehub.inventory.views import devices
|
2022-04-04 11:41:36 +00:00
|
|
|
from ereuse_devicehub.labels.views import labels
|
2022-01-17 11:55:42 +00:00
|
|
|
from ereuse_devicehub.views import core
|
2022-05-11 09:48:53 +00:00
|
|
|
from ereuse_devicehub.workbench.views import workbench
|
2023-09-19 07:05:59 +00:00
|
|
|
from ereuse_devicehub.modules.did.views import did
|
|
|
|
from ereuse_devicehub.modules.dpp.views import dpp
|
|
|
|
from ereuse_devicehub.modules.oidc.views import oidc
|
|
|
|
from ereuse_devicehub.modules.oidc.oauth2 import config_oauth
|
2022-01-17 11:55:42 +00:00
|
|
|
|
|
|
|
app = Devicehub(inventory=DevicehubConfig.DB_SCHEMA)
|
|
|
|
app.register_blueprint(core)
|
|
|
|
app.register_blueprint(devices)
|
2022-04-04 11:41:36 +00:00
|
|
|
app.register_blueprint(labels)
|
2022-04-08 14:52:17 +00:00
|
|
|
app.register_blueprint(api)
|
2022-05-11 09:48:53 +00:00
|
|
|
app.register_blueprint(workbench)
|
2023-09-19 07:05:59 +00:00
|
|
|
app.register_blueprint(did)
|
|
|
|
app.register_blueprint(dpp)
|
|
|
|
app.register_blueprint(oidc)
|
2018-07-17 18:57:29 +00:00
|
|
|
|
2022-10-19 11:35:53 +00:00
|
|
|
|
2023-09-19 07:05:59 +00:00
|
|
|
config_oauth(app)
|
|
|
|
|