Skip to content

Commit

Permalink
Fixed Swagger UI broken since last libraries update (1.4.3-beta)
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheus65535 committed Apr 17, 2024
1 parent af89384 commit a8c3528
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions bazarr/app/server.py
Expand Up @@ -18,10 +18,7 @@
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('/'))


Expand Down

0 comments on commit a8c3528

Please sign in to comment.