There was an error while loading. Please reload this page.
1 parent ba3e7fc commit 97ece42Copy full SHA for 97ece42
1 file changed
server/middle/router.js
@@ -64,7 +64,7 @@ module.exports = function (channelManager, domain, cdn, basePath) {
64
});
65
66
function createStatic(prefix, folder) {
67
- router.get(`${basePath}${prefix}/*static`, async ctx => {
+ router.get(`${basePath}${prefix}/:staticPath(.*)`, async ctx => {
68
await send(ctx, ctx.path.slice(basePath.length + prefix.length), {
69
root: path.resolve(__dirname, `../..${folder}`),
70
maxAge,
0 commit comments