From a45f76c5748f3203e05790d0acbda51fd75224ed Mon Sep 17 00:00:00 2001 From: kirrg001 Date: Thu, 31 Jan 2019 22:09:14 +0100 Subject: [PATCH] Allowed subscribers for admin api v2 with api key authentication refs #9865 - needed for Zapier --- core/server/web/api/v2/admin/middleware.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/server/web/api/v2/admin/middleware.js b/core/server/web/api/v2/admin/middleware.js index 9c998ef557..2c15eb291d 100644 --- a/core/server/web/api/v2/admin/middleware.js +++ b/core/server/web/api/v2/admin/middleware.js @@ -16,7 +16,8 @@ const notImplemented = function (req, res, next) { images: ['POST'], // @NOTE: experimental users: ['GET'], - themes: ['POST'] + themes: ['POST'], + subscribers: ['GET', 'PUT', 'DELETE', 'POST'] }; const match = req.url.match(/^\/(\w+)\/?/);