CICD/app/widget/__init__.py

11 lines
254 B
Python
Raw Normal View History

2019-05-18 19:00:13 +02:00
from .model import Widget # noqa
from .schema import WidgetSchema # noqa
2019-08-03 18:55:38 +02:00
BASE_ROUTE = "widget"
2019-05-18 19:00:13 +02:00
2019-08-03 18:55:38 +02:00
def register_routes(api, app, root="api"):
2019-05-18 19:00:13 +02:00
from .controller import api as widget_api
2019-05-18 19:47:47 +02:00
2019-08-03 18:55:38 +02:00
api.add_namespace(widget_api, path=f"/{root}/{BASE_ROUTE}")