This repository has been archived on 2024-10-27. You can view files and clone it, but cannot push or open issues or pull requests.
2023-10-01 00:20:00 -06:00
|
|
|
from flask import Blueprint
|
2023-09-30 20:59:24 -06:00
|
|
|
|
2023-10-01 00:20:00 -06:00
|
|
|
from ..request_handler import before_request
|
|
|
|
from ..server_error import handle_server_error
|
2023-09-30 20:59:24 -06:00
|
|
|
|
2023-10-01 00:20:00 -06:00
|
|
|
bp = Blueprint('v1', __name__)
|
2023-09-30 20:59:24 -06:00
|
|
|
|
|
|
|
|
2023-10-01 00:20:00 -06:00
|
|
|
@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
|