IO-2348 add http auth for media.
This commit is contained in:
@@ -123,6 +123,13 @@ app.post(
|
||||
twilio.webhook({ validate: process.env.NODE_ENV === "PRODUCTION" }),
|
||||
smsStatus.status
|
||||
);
|
||||
const smsFetchMedia = require("./server/sms/fetch-media");
|
||||
app.post(
|
||||
"/sms/fetchmedia",
|
||||
fb.validateFirebaseIdToken,
|
||||
smsFetchMedia.fetchmedia
|
||||
);
|
||||
|
||||
app.post(
|
||||
"/sms/markConversationRead",
|
||||
fb.validateFirebaseIdToken,
|
||||
|
||||
Reference in New Issue
Block a user