Proper 404 handling

This commit is contained in:
MrFry 2019-11-03 16:40:51 +01:00
parent d706a21117
commit 4a1cad43c8
4 changed files with 8 additions and 20 deletions

View file

@ -201,14 +201,11 @@ app.route('/badtestsender').post(function (req, res, next) {
})
app.get('*', function (req, res) {
res.render('shared/404')
res.status(404)
// utils.AppendToFile(logger.GetDateString() + ": " + "404 GET", logFile);
res.status(404).render('shared/404')
})
app.post('*', function (req, res) {
res.status(404)
// utils.AppendToFile(logger.GetDateString() + ": " + "404 POST", logFile);
res.status(404).render('shared/404')
})
exports.app = app