mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-12-08 20:48:48 +00:00
Fixed 404 status not being sent
This commit is contained in:
@@ -130,7 +130,8 @@ app.use('/', router);
|
||||
app.use('/assets', express.static(publicPath + '/assets'));
|
||||
|
||||
app.use(function (req, res, next) {
|
||||
res.status(404).redirect("/404");
|
||||
res.status(404);
|
||||
res.redirect("/404");
|
||||
})
|
||||
|
||||
db.on('error',function(err) {
|
||||
|
||||
Reference in New Issue
Block a user