0
我正在試圖在下面的代碼中找到krakenjs中的等效config.json文件條目。在krakenjs中顯示靜態裝載路徑
app.use("/app/static", express.static(path.join(__dirname, 'public'), {maxage: '2h'}));
我想是這樣的下面。但是,它並沒有挑安裝路徑
"static": {
"enabled": true,
"priority": 40,
"name": "server-static",
"module": {
"arguments": [
"path:./public",
{"maxAge" : "3h"},
"mountpath:/app/static"
]
}
}
我無法用下面的URL來訪問它:https://app.com/app/static/style.css。但是,它可以通過https://app.com/app/style.css
訪問注意:/ app是我的requestURI。