mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-29 07:18:08 +09:00
Fix
This commit is contained in:
parent
c4dd9f170f
commit
a1d53010ab
@ -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
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user