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:
parent
3d26aee605
commit
bc716b50bc
2 changed files with 10 additions and 2 deletions
|
@ -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()
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue