Send servicewroker script
This commit is contained in:
parent
d692bb3c52
commit
0ca5237139
@ -66,9 +66,11 @@ router.get('/apple-touch-icon.png', async ctx => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// ServiceWroker
|
// ServiceWroker
|
||||||
//router.get(/^\/sw\.(.+?)\.js$/, async ctx => {
|
router.get(/^\/sw\.(.+?)\.js$/, async ctx => {
|
||||||
// await send(ctx, `${client}/assets/sw.${ctx.params[0]}.js`);
|
await send(ctx, `/assets/sw.${ctx.params[0]}.js`, {
|
||||||
//});
|
root: client
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
// Manifest
|
// Manifest
|
||||||
router.get('/manifest.json', async ctx => {
|
router.get('/manifest.json', async ctx => {
|
||||||
|
Loading…
Reference in New Issue
Block a user