diff --git a/flask_apispec/extension.py b/flask_apispec/extension.py index 68636b1..1d5ffea 100644 --- a/flask_apispec/extension.py +++ b/flask_apispec/extension.py @@ -73,7 +73,8 @@ def add_swagger_routes(self): __name__, static_folder='./static', template_folder='./templates', - static_url_path='/flask-apispec/static', + static_url_path=self.app.config.get('APISPEC_SWAGGER_STATIC_URL', + '/flask-apispec/static') ) json_url = self.app.config.get('APISPEC_SWAGGER_URL', '/swagger/')