diff --git a/api/index.js b/api/index.js index 4ea0558..4de2b6d 100644 --- a/api/index.js +++ b/api/index.js @@ -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)