Added veteran pw request site, logging in prettying

This commit is contained in:
MrFry 2020-04-08 17:57:56 +02:00
parent 03c54c7bd4
commit b970b2eb30
4 changed files with 181 additions and 28 deletions

View file

@ -53,7 +53,8 @@ function GetApp () {
userDB: userDB,
jsonResponse: false,
exceptions: [
'/favicon.ico'
'/favicon.ico',
'/getVeteranPw'
]
}))
app.use(express.static('modules/qmining/public'))
@ -172,6 +173,13 @@ function GetApp () {
logger.LogReq(req)
})
app.get('/getVeteranPw', function (req, res) {
res.render('veteranPw', {
cid: req.query.cid
})
logger.LogReq(req)
})
app.get('*', function (req, res) {
res.status(404).render('404')
})