add schema and hook up blueprint

This commit is contained in:
Leo Hemsted
2018-02-19 15:03:36 +00:00
committed by Rebecca Law
parent 5b71d2f36e
commit 0d9aa5c531
5 changed files with 59 additions and 52 deletions

View File

@@ -108,6 +108,7 @@ def register_blueprint(application):
from app.letters.rest import letter_job
from app.billing.rest import billing_blueprint
from app.organisation.rest import organisation_blueprint
from app.organisation.invite_rest import organisation_invite_blueprint
service_blueprint.before_request(requires_admin_auth)
application.register_blueprint(service_blueprint, url_prefix='/service')
@@ -181,6 +182,9 @@ def register_blueprint(application):
organisation_blueprint.before_request(requires_admin_auth)
application.register_blueprint(organisation_blueprint, url_prefix='/organisations')
organisation_invite_blueprint.before_request(requires_admin_auth)
application.register_blueprint(organisation_invite_blueprint)
def register_v2_blueprints(application):
from app.v2.inbound_sms.get_inbound_sms import v2_inbound_sms_blueprint as get_inbound_sms