From 943e1c872c37620ef961a8cb8c31fffd6f86eca5 Mon Sep 17 00:00:00 2001 From: Fabien O'Carroll Date: Mon, 15 Oct 2018 16:28:23 +0700 Subject: [PATCH] Removed POST /subscribers from v2 content api (#10010) no-issue The content api is for serving read-only content only. This route does not belong here. --- core/server/web/api/v2/content/routes.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/core/server/web/api/v2/content/routes.js b/core/server/web/api/v2/content/routes.js index 33057783cc..b1f0a07da9 100644 --- a/core/server/web/api/v2/content/routes.js +++ b/core/server/web/api/v2/content/routes.js @@ -34,9 +34,5 @@ module.exports = function apiRoutes() { router.get('/tags/:id', mw.authenticatePublic, apiv2.http(apiv2.tags.read)); router.get('/tags/slug/:slug', mw.authenticatePublic, apiv2.http(apiv2.tags.read)); - // ## Subscribers - // @TODO: find a way than `middlewares.labs` - router.post('/subscribers', shared.middlewares.labs.subscribers, mw.authenticatePublic, api.http(api.subscribers.add)); - return router; };