CICD/app/widget/__init__.py
2019-05-18 13:47:47 -04:00

10 lines
253 B
Python

from .model import Widget # noqa
from .schema import WidgetSchema # noqa
BASE_ROUTE = 'widget'
def register_routes(api, app, root='api'):
from .controller import api as widget_api
api.add_namespace(widget_api, path=f'/{root}/{BASE_ROUTE}')