mirror of
https://framagit.org/les/gancio.git
synced 2025-02-01 00:52:01 +01:00
return 404 when /media not found
This commit is contained in:
parent
fcd28dca3a
commit
3fb4970ec5
1 changed files with 2 additions and 2 deletions
|
@ -95,8 +95,8 @@ module.exports = {
|
|||
|
||||
serveStatic () {
|
||||
const router = express.Router()
|
||||
// serve event's images/thumb
|
||||
router.use('/media/', express.static(config.upload_path, { immutable: true, maxAge: '1y' } ))
|
||||
// serve images/thumb
|
||||
router.use('/media/', express.static(config.upload_path, { immutable: true, maxAge: '1y' } ), (_req, res) => res.sendStatus(404))
|
||||
router.use('/noimg.svg', express.static('./static/noimg.svg'))
|
||||
|
||||
router.use('/logo.png', (req, res, next) => {
|
||||
|
|
Loading…
Reference in a new issue