Added servergit, allqr redirects, fixed install linx

This commit is contained in:
MrFry 2020-03-17 17:56:22 +01:00
parent f0c158361e
commit 6a3593fa6e
4 changed files with 22 additions and 8 deletions

View file

@ -98,12 +98,6 @@ app.post('/postfeedback', function (req, res) {
res.end()
})
app.get('/servergit', function (req, res) {
res.redirect('https://gitlab.com/MrFry/mrfrys-node-server')
res.end()
logger.LogReq(req)
})
function UploadFile (req, res, path, next) {
var fstream
req.pipe(req.busboy)
@ -140,6 +134,13 @@ app.route('/badtestsender').post(function (req, res, next) {
logger.LogReq(req)
})
app.get('/allqr.txt', function (req, res) {
res.set('Content-Type', 'text/plain')
res.send(data.toString())
res.end()
logger.LogReq(req)
})
// -------------------------------------------------------------------------------------------
// API