Allqr downloadable txt

This commit is contained in:
MrFry 2020-03-07 14:19:03 +01:00
parent 81e524978c
commit 75ba9905b4
5 changed files with 7 additions and 30 deletions

View file

@ -179,10 +179,10 @@ app.get('/menuClick', function (req, res) {
})
// all questions readable
app.get('/allqr', function (req, res) {
res.render('allqr', {
d: data.toString().split('\n')
})
app.get('/allqr.txt', function (req, res) {
res.set('Content-Type', 'text/plain')
res.send(data.toString())
res.end()
logger.LogReq(req)
})