0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-01 02:41:39 -05:00

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.
This commit is contained in:
Fabien O'Carroll 2018-10-15 16:28:23 +07:00 committed by GitHub
parent 3db102a776
commit 943e1c872c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
};