mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
qa reverse order
This commit is contained in:
@@ -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()
|
||||
})
|
||||
|
Reference in New Issue
Block a user