mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2026-04-27 18:57:38 +02:00
Proper 404 handling
This commit is contained in:
+2
-5
@@ -83,14 +83,11 @@ app.route('/fosuploader').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
|
||||
|
||||
Reference in New Issue
Block a user