mirror of
https://github.com/hotomoe/hotomoe
synced 2024-12-05 10:18:09 +09:00
✌️
This commit is contained in:
parent
31f9de1324
commit
1809800980
@ -42,6 +42,9 @@ app.use('/assets', express.static(`${__dirname}/assets`, {
|
||||
maxAge: ms('7 days')
|
||||
}));
|
||||
|
||||
/**
|
||||
* ServiceWroker
|
||||
*/
|
||||
app.get(/^\/sw\.(.+?)\.js$/, (req, res) => res.sendFile(`${__dirname}/assets/sw.${req.params[0]}.js`));
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user