2019-05-18 19:00:13 +02:00
|
|
|
from .model import Widget # noqa
|
|
|
|
from .schema import WidgetSchema # noqa
|
|
|
|
BASE_ROUTE = 'widget'
|
|
|
|
|
|
|
|
|
2019-05-18 19:47:47 +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
|
|
|
|
|
|
|
api.add_namespace(widget_api, path=f'/{root}/{BASE_ROUTE}')
|