re-enable 404 catchall
This commit is contained in:
@@ -169,8 +169,8 @@ app.use(function (err, req, res, next) {
|
||||
});
|
||||
|
||||
// catch 404 and forward to error handler
|
||||
// app.use(function (req, res, next) {
|
||||
// next(createError(404));
|
||||
// });
|
||||
app.use(function (req, res, next) {
|
||||
next(createError(404));
|
||||
});
|
||||
|
||||
module.exports = {app};
|
||||
Reference in New Issue
Block a user