Skip to content

Commit 1407b51

Browse files
Support swagger static url config
1 parent b51962a commit 1407b51

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flask_apispec/extension.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ def add_swagger_routes(self):
7373
__name__,
7474
static_folder='./static',
7575
template_folder='./templates',
76-
static_url_path='/flask-apispec/static',
76+
static_url_path=self.app.config.get('APISPEC_SWAGGER_STATIC_URL',
77+
'/flask-apispec/static')
7778
)
7879

7980
json_url = self.app.config.get('APISPEC_SWAGGER_URL', '/swagger/')

0 commit comments

Comments
 (0)