11 lines
254 B
Python
11 lines
254 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}")
|