mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
404 site views folder fix
This commit is contained in:
@@ -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
|
||||
|
@@ -289,7 +289,6 @@ app.post('/isAdding', function (req, res) {
|
||||
})
|
||||
|
||||
app.get('/q', function (req, res) {
|
||||
logger.LogReq(req)
|
||||
if (Object.keys(req.query).length === 0) {
|
||||
res.json({
|
||||
message: `ask something! ?q=[question]&subj=[subject]&data=[question data]. 'subj' is optimal for faster result`,
|
||||
@@ -366,7 +365,6 @@ app.get('/infos', function (req, res) {
|
||||
if (req.query.motd) {
|
||||
result.motd = motd
|
||||
}
|
||||
logger.LogReq(req)
|
||||
res.json(result)
|
||||
})
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user