This commit is contained in:
2019-03-24 08:17:35 +01:00
parent 825eff80d8
commit 594480d11f
53 changed files with 13924 additions and 4 deletions
+9 -1
View File
@@ -50,12 +50,20 @@ router.get('/terms/', function(req, res, next) {
});
router.post('/request/', function(req, res, next) {
var app = req.app
var mailer = app.get('MAILER')
const paramStart = req.body.start
const paramEnd = req.body.end
const paramName = req.body.name
const paramContact = req.body.contact
//TODO: Mail hier!
mailer.mail({
name: paramName,
contact: paramContact,
start: paramStart,
end: paramEnd
})
res.render('request', { title: 'Dein.Equipment: Anfrage gesendet' })
})