move service_inbound_api endpoints to their own blueprint

try and reduce the size of the service blueprint :)
This commit is contained in:
Leo Hemsted
2017-11-29 16:28:01 +00:00
parent c07e804319
commit 0304af08df
4 changed files with 90 additions and 73 deletions

View File

@@ -82,6 +82,7 @@ def create_app(application):
def register_blueprint(application):
from app.service.rest import service_blueprint
from app.service.callback_rest import service_callback_blueprint
from app.user.rest import user_blueprint
from app.template.rest import template_blueprint
from app.status.healthcheck import status as status_blueprint
@@ -171,6 +172,9 @@ def register_blueprint(application):
billing_blueprint.before_request(requires_admin_auth)
application.register_blueprint(billing_blueprint)
service_callback_blueprint.before_request(requires_admin_auth)
application.register_blueprint(service_callback_blueprint)
def register_v2_blueprints(application):
from app.v2.inbound_sms.get_inbound_sms import v2_inbound_sms_blueprint as get_inbound_sms