From 1407b511deb59f438b4ef48af5316164853aa277 Mon Sep 17 00:00:00 2001 From: trieuan Date: Sat, 24 Aug 2019 12:08:55 +0700 Subject: [PATCH] Support swagger static url config --- flask_apispec/extension.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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/')