IO-2061 Handled Bounced Emails.

This commit is contained in:
Patrick Fic
2022-09-22 14:46:08 -07:00
parent cccd025a24
commit 7fc8cbcca4
19 changed files with 165 additions and 14 deletions

View File

@@ -64,6 +64,11 @@ app.use(
//Email Based Paths.
var sendEmail = require("./server/email/sendemail.js");
app.post("/sendemail", fb.validateFirebaseIdToken, sendEmail.sendEmail);
app.post(
"/emailbounce",
bodyParser.text(),
sendEmail.emailBounce
);
//Test route to ensure Express is responding.
app.get("/test", async function (req, res) {
@@ -238,7 +243,6 @@ app.get("/", async function (req, res) {
res.status(200).send("Access Forbidden.");
});
server.listen(port, (error) => {
if (error) throw error;
logger.log(