From 41cfaa1e76fc7be8aa3d14f367682ffd91517d3f Mon Sep 17 00:00:00 2001 From: Mike McNeil Date: Tue, 6 Jul 2021 21:22:02 -0500 Subject: [PATCH] Change webhook route + expose without relying on session --- website/config/routes.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/website/config/routes.js b/website/config/routes.js index 200d089632..f886b0beaf 100644 --- a/website/config/routes.js +++ b/website/config/routes.js @@ -58,7 +58,7 @@ module.exports.routes = { // ╦ ╦╔═╗╔╗ ╦ ╦╔═╗╔═╗╦╔═╔═╗ // ║║║║╣ ╠╩╗╠═╣║ ║║ ║╠╩╗╚═╗ // ╚╩╝╚═╝╚═╝╩ ╩╚═╝╚═╝╩ ╩╚═╝ - // … + 'POST /api/v1/webhooks/receive-usage-analytics': { action: 'receive-usage-analytics', csrf: false }, // ╔═╗╔═╗╦ ╔═╗╔╗╔╔╦╗╔═╗╔═╗╦╔╗╔╔╦╗╔═╗ @@ -67,6 +67,5 @@ module.exports.routes = { // Note that, in this app, these API endpoints may be accessed using the `Cloud.*()` methods // from the Parasails library, or by using those method names as the `action` in . 'POST /api/v1/deliver-contact-form-message': { action: 'deliver-contact-form-message' }, - 'POST /api/v1/receive-usage-analytics': { action: 'receive-usage-analytics' }, };