Total Complexity | 0 |
Total Lines | 12 |
Duplicated Lines | 0 % |
Changes | 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 |