Passed
Push — master ( c5ffbf...11a02e )
by Mingyu
01:48
created

app.blueprints   A

Complexity

Total Complexity 0

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 0
eloc 8
dl 0
loc 12
rs 10
c 0
b 0
f 0
1
from flask import Blueprint
2
from werkzeug.exceptions import HTTPException
3
4
from app import errorhandlers, callback_decorators
5
6
7
api_v1_blueprint = Blueprint('api_v1', __name__, url_prefix='/api/v1')
8
9
api_v1_blueprint.register_error_handler(HTTPException, errorhandlers.http_exception_handler)
10
api_v1_blueprint.register_error_handler(Exception, errorhandlers.broad_exception_error_handler)
11
api_v1_blueprint.after_request(callback_decorators.after_request)
12