qa reverse order

This commit is contained in:
MrFry 2020-01-15 10:10:27 +01:00
parent 3d26aee605
commit bc716b50bc
2 changed files with 10 additions and 2 deletions

View file

@ -36,6 +36,7 @@ const recivedFiles = 'public/recivedfiles'
const uloadFiles = 'public/f'
const dataFile = 'public/data.json'
const msgFile = 'stats/msgs'
const motdFile = 'public/motd'
let donateURL = ''
try {
donateURL = utils.ReadFile('./data/donateURL')
@ -64,9 +65,16 @@ app.use(bodyParser.json({
app.get('/', function (req, res) {
// req.hostname
let motd = ''
try {
motd = utils.ReadFile(motdFile)
} catch (e) {
}
res.render('qmining/main', {
siteurl: url,
qa: actions.ProcessQA()
qa: actions.ProcessQA(),
motd: motd
})
res.end()
})