mirror of
https://github.com/morpheus65535/bazarr
synced 2025-01-03 05:25:28 +00:00
Fixed Swagger UI broken since last libraries update (1.4.3-beta)
This commit is contained in:
parent
af893847c6
commit
a8c352854f
1 changed files with 1 additions and 4 deletions
|
@ -18,10 +18,7 @@ from .database import close_database
|
|||
from .app import create_app
|
||||
|
||||
app = create_app()
|
||||
ui_bp.register_blueprint(api_bp, url_prefix='/api')
|
||||
# Mute UserWarning with flask-restx and Flask >= 2.2.0. Will be raised as an exception in 2.3.0
|
||||
# https://github.com/python-restx/flask-restx/issues/485
|
||||
warnings.filterwarnings('ignore', message='The setup method ')
|
||||
app.register_blueprint(api_bp, url_prefix=base_url.rstrip('/') + '/api')
|
||||
app.register_blueprint(ui_bp, url_prefix=base_url.rstrip('/'))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue