这是我的配置
gSWAGGER_CONFIG = {
"headers": [
],
"specs": [
{
"endpoint": 'apispec',
"route": '/apispec.json',
"rule_filter": lambda rule: True, # all in
"model_filter": lambda tag: True, # all in
}
],
"static_url_path": '/playground/topic-clf-api/flasgger_static',
# "static_folder": "static", # must be set by user
"swagger_ui": True,
"specs_route": "/"
}
我可以访问http://host/playground/topic-clf-api和http://host/playground/topic-clf-api/apispec.json,但是缺少静态文件