20 lines
361 B
Python
20 lines
361 B
Python
from flask import Blueprint
|
|
|
|
from ..request_handler import before_request
|
|
from ..server_error import handle_server_error
|
|
|
|
bp = Blueprint('v1', __name__)
|
|
|
|
|
|
@bp.before_request
|
|
def before_bp_request():
|
|
return before_request()
|
|
|
|
|
|
@bp.errorhandler(500)
|
|
def handle_error(e):
|
|
return handle_server_error(e)
|
|
|
|
|
|
from . import generate, info, proxy, generate_stream
|