Moved url_prefix to inbound_number rest.py

This commit is contained in:
Ken Tsang
2017-08-14 12:46:04 +01:00
parent 81754712ce
commit 4eba6335d6
2 changed files with 2 additions and 2 deletions

View File

@@ -136,7 +136,7 @@ def register_blueprint(application):
application.register_blueprint(delivery_blueprint)
inbound_number_blueprint.before_request(requires_admin_auth)
application.register_blueprint(inbound_number_blueprint, url_prefix='/inbound-number')
application.register_blueprint(inbound_number_blueprint)
inbound_sms_blueprint.before_request(requires_admin_auth)
application.register_blueprint(inbound_sms_blueprint)

View File

@@ -9,7 +9,7 @@ from app.dao.inbound_numbers_dao import (
)
from app.errors import InvalidRequest, register_errors
inbound_number_blueprint = Blueprint('inbound_number', __name__)
inbound_number_blueprint = Blueprint('inbound_number', __name__, url_prefix='/inbound-number')
register_errors(inbound_number_blueprint)