CICD/app/routes.py

12 lines
441 B
Python
Raw Normal View History

2019-08-03 18:55:38 +02:00
def register_routes(api, app, root="api"):
2019-05-18 19:00:13 +02:00
from app.widget import register_routes as attach_widget
from app.fizz import register_routes as attach_fizz
2019-05-18 19:47:47 +02:00
from app.other_api import register_routes as attach_other_api
from app.third_party.app import create_bp
2019-05-18 19:00:13 +02:00
# Add routes
2019-05-18 19:47:47 +02:00
attach_widget(api, app)
attach_fizz(api, app)
attach_other_api(api, app)
2019-08-03 18:55:38 +02:00
app.register_blueprint(create_bp(), url_prefix="/third_party")