This commit is contained in:
MrFry 2020-01-28 15:52:36 +01:00
commit 3ebbeb7673
5 changed files with 8 additions and 34 deletions

View file

@ -58,11 +58,11 @@ app.get('/', function (req, res) {
})
app.get('*', function (req, res) {
res.status(404).render('shared/404')
res.status(404).render('404')
})
app.post('*', function (req, res) {
res.status(404).render('shared/404')
res.status(404).render('404')
})
exports.app = app

View file

@ -366,7 +366,6 @@ app.get('/infos', function (req, res) {
if (req.query.motd) {
result.motd = motd
}
logger.LogReq(req)
res.json(result)
})

View file

@ -87,11 +87,11 @@ app.route('/fosuploader').post(function (req, res, next) {
})
})
app.get('*', function (req, res) {
res.status(404).render('shared/404')
res.status(404).render('404')
})
app.post('*', function (req, res) {
res.status(404).render('shared/404')
res.status(404).render('404')
})
exports.app = app

View file

@ -197,11 +197,11 @@ app.get('/*', function (req, res) {
// -----------------------------------------------------------------------------------------------
app.get('*', function (req, res) {
res.status(404).render('shared/404')
res.status(404).render('404')
})
app.post('*', function (req, res) {
res.status(404).render('shared/404')
res.status(404).render('404')
})
exports.app = app