From dbb2ece212b43c15eaa0da90d1a771d9cf532cea Mon Sep 17 00:00:00 2001 From: Zapdos26 Date: Fri, 21 Feb 2020 22:34:39 -0500 Subject: [PATCH] Added email endpoint for rampart --- server.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/server.js b/server.js index 6150710..f6ad8b5 100644 --- a/server.js +++ b/server.js @@ -77,6 +77,14 @@ app.post('/tmd_slack_notification_long', (req, res) => { }); + +app.post('/email',(req,res) => { + const data = req.body; + delete data["verification"]; + notifications.email(data); + res.status(200).send(); +}); + /*** * Set's up email to receive and process */