404 site views folder fix

This commit is contained in:
MrFry 2020-01-28 15:40:18 +01:00
parent da88bc0aa0
commit c1560a367d
5 changed files with 8 additions and 35 deletions

View file

@ -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)
})