BOD-14 Baseline server-side send,receive,status APIs created

This commit is contained in:
Patrick Fic
2020-03-25 16:49:42 -07:00
parent 84a5820d8d
commit 546d2d82b7
25 changed files with 547 additions and 12 deletions

View File

@@ -40,7 +40,11 @@ app.post(
var smsSend = require("./server/sms/send");
app.post("/sms/send", smsSend.send);
var smsStatus = require("./server/sms/status");
app.post("/sms/status", smsStatus.status);
app.post(
"/sms/status",
twilio.webhook({ validate: process.env.NODE_ENV === "PRODUCTION" }),
smsStatus.status
);
var downloadImages = require("./download-images");
app.get("/downloadImages", downloadImages.downloadImages);