Skip to content

Commit eb8cb01

Browse files
Support swagger static url config
1 parent b51962a commit eb8cb01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flask_apispec/extension.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ 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', '/flask-apispec/static')
7777
)
7878

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

0 commit comments

Comments
 (0)