flasgger静态文件404

时间:2018-08-15 19:38:30

标签: flask swagger flasgger

这是我的配置

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-apihttp://host/playground/topic-clf-api/apispec.json,但是缺少静态文件

image

0 个答案:

没有答案