mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 05:37:34 +03:00
Enabled RO Collections Admin API
The future work around collections requires the read only portions of the Collections Admin API to be enabled without a flag. The write endpoints are only for custom collections which aren't required.
This commit is contained in:
parent
3960bfac1d
commit
c1a9f2d6a6
@ -20,9 +20,9 @@ module.exports = function apiRoutes() {
|
||||
router.post('/mail_events', mw.publicAdminApi, http(api.mailEvents.add));
|
||||
|
||||
// ## Collections
|
||||
router.get('/collections', mw.authAdminApi, labs.enabledMiddleware('collections'), http(api.collections.browse));
|
||||
router.get('/collections/:id', mw.authAdminApi, labs.enabledMiddleware('collections'), http(api.collections.read));
|
||||
router.get('/collections/slug/:slug', mw.authAdminApi, labs.enabledMiddleware('collections'), http(api.collections.read));
|
||||
router.get('/collections', mw.authAdminApi, http(api.collections.browse));
|
||||
router.get('/collections/:id', mw.authAdminApi, http(api.collections.read));
|
||||
router.get('/collections/slug/:slug', mw.authAdminApi, http(api.collections.read));
|
||||
router.post('/collections', mw.authAdminApi, labs.enabledMiddleware('collections'), http(api.collections.add));
|
||||
router.put('/collections/:id', mw.authAdminApi, labs.enabledMiddleware('collections'), http(api.collections.edit));
|
||||
router.del('/collections/:id', mw.authAdminApi, labs.enabledMiddleware('collections'), http(api.collections.destroy));
|
||||
|
Loading…
Reference in New Issue
Block a user