util.license: make bp-modification a method

This commit is contained in:
Jimmy Zelinskie 2016-10-17 15:20:09 -04:00 committed by Joseph Schorr
parent 6eb26d7998
commit a42eb09a3e
4 changed files with 28 additions and 23 deletions

View file

@ -2,12 +2,11 @@ from flask import Blueprint, make_response
from app import metric_queue, license_validator
from endpoints.decorators import anon_protect, anon_allowed
from util.license import enforce_license_before_request
from util.metrics.metricqueue import time_blueprint
v1_bp = Blueprint('v1', __name__)
enforce_license_before_request(license_validator, v1_bp)
license_validator.enforce_license_before_request(v1_bp)
time_blueprint(v1_bp, metric_queue)