feat: ✅ Create contact form healthcheck
This commit is contained in:
parent
6e3a84305e
commit
4c2f701d14
|
@ -59,6 +59,15 @@ app.get('/xmr-receive/:addr', cors, async (req, res) => {
|
|||
// Send email through contact form
|
||||
app.options('/contact', cors)
|
||||
.post('/contact', jsonBodyParser, cors, require('./contact'))
|
||||
// Healthcheck contact form
|
||||
app.get('/contact', async (req,res) => {
|
||||
try {
|
||||
await require('../lib/mailer').verify()
|
||||
return res.sendStatus(200)
|
||||
} catch (err) {
|
||||
return res.status(500).send(err)
|
||||
}
|
||||
})
|
||||
|
||||
// Send bug report through disclosure form
|
||||
app.options('/bug', cors)
|
||||
|
|
Loading…
Reference in New Issue