diff options
author | morpheus65535 <[email protected]> | 2024-04-16 20:20:34 -0400 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2024-04-16 20:20:34 -0400 |
commit | a8c352854fc70717de54823f4ce185990be5b8f7 (patch) | |
tree | 6377f0e177e950dcdd2b98e4867847d61811df84 | |
parent | af893847c618a5c531038a825aa2687c972b2117 (diff) | |
download | bazarr-a8c352854fc70717de54823f4ce185990be5b8f7.tar.gz bazarr-a8c352854fc70717de54823f4ce185990be5b8f7.zip |
Fixed Swagger UI broken since last libraries update (1.4.3-beta)
-rw-r--r-- | bazarr/app/server.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/bazarr/app/server.py b/bazarr/app/server.py index 250fa6c0a..5caefbf67 100644 --- a/bazarr/app/server.py +++ b/bazarr/app/server.py @@ -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('/')) |