CICD/app/fizz/__init__.py

10 lines
322 B
Python
Raw Normal View History

2019-05-18 19:00:13 +02:00
BASE_ROUTE = 'fizz'
2019-05-18 19:47:47 +02:00
def register_routes(api, app, root='api'):
2019-05-18 19:00:13 +02:00
from .fizzbar.controller import api as fizzbar_api
from .fizzbaz.controller import api as fizzbaz_api
2019-05-18 19:47:47 +02:00
api.add_namespace(fizzbar_api, path=f'/{root}/{BASE_ROUTE}/fizzbar')
api.add_namespace(fizzbaz_api, path=f'/{root}/{BASE_ROUTE}/fizzbaz')