0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Added email preview endpoint to Admin API

This commit is contained in:
Nazar Gargol 2019-11-05 12:14:13 +07:00
parent 5e9a701d3a
commit 61af0e08ae

View file

@ -215,5 +215,8 @@ module.exports = function apiRoutes() {
// ## Actions // ## Actions
router.get('/actions', mw.authAdminApi, http(apiCanary.actions.browse)); router.get('/actions', mw.authAdminApi, http(apiCanary.actions.browse));
// ## Emails
router.get('/email_preview/posts/:id', mw.authAdminApi, http(apiCanary.email_preview.read));
return router; return router;
}; };