CICD/app/fizz/__init__.py
2019-08-03 12:55:38 -04:00

10 lines
322 B
Python

BASE_ROUTE = "fizz"
def register_routes(api, app, root="api"):
from .fizzbar.controller import api as fizzbar_api
from .fizzbaz.controller import api as fizzbaz_api
api.add_namespace(fizzbar_api, path=f"/{root}/{BASE_ROUTE}/fizzbar")
api.add_namespace(fizzbaz_api, path=f"/{root}/{BASE_ROUTE}/fizzbaz")