This commit is contained in:
syuilo 2018-04-13 12:08:56 +09:00
parent b099ad2a30
commit f618dedfbc
1 changed files with 2 additions and 2 deletions

View File

@ -11,8 +11,8 @@ const docs = `${__dirname}/../../client/docs/`;
const router = new Router(); const router = new Router();
router.get('/assets/*', async ctx => { router.get('/assets/*', async ctx => {
await send(ctx, ctx.path, { await send(ctx, ctx.params[0], {
root: docs, root: docs + '/assets/',
maxage: ms('7 days'), maxage: ms('7 days'),
immutable: true immutable: true
}); });