Add example of third party API

This commit is contained in:
Alan Pryor
2019-05-18 13:47:47 -04:00
parent 61d1388f5d
commit 1ef26d3b60
30 changed files with 728 additions and 15 deletions

View File

@@ -3,7 +3,7 @@ from .schema import WidgetSchema # noqa
BASE_ROUTE = 'widget'
def register_routes(root_api, root='api'):
def register_routes(api, app, root='api'):
from .controller import api as widget_api
root_api.add_namespace(widget_api, path=f'/{root}/{BASE_ROUTE}')
return root_api
api.add_namespace(widget_api, path=f'/{root}/{BASE_ROUTE}')