mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 11:43:09 +02:00
Send 404 status correctly
This commit is contained in:
parent
30adc590a4
commit
66e76d9aa2
1 changed files with 3 additions and 0 deletions
|
@ -39,6 +39,9 @@ app.get('/apple-touch-icon.png', (req, res) => res.sendFile(`${__dirname}/assets
|
||||||
app.use('/assets', express.static(`${__dirname}/assets`, {
|
app.use('/assets', express.static(`${__dirname}/assets`, {
|
||||||
maxAge: ms('7 days')
|
maxAge: ms('7 days')
|
||||||
}));
|
}));
|
||||||
|
app.use('/assets', (req, res) => {
|
||||||
|
res.sendStatus(404);
|
||||||
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ServiceWroker
|
* ServiceWroker
|
||||||
|
|
Loading…
Reference in a new issue