diff --git a/core/server/helpers/get.js b/core/server/helpers/get.js index 70baf60dc2..3a785f7ec9 100644 --- a/core/server/helpers/get.js +++ b/core/server/helpers/get.js @@ -163,6 +163,7 @@ get = function get(resource, options) { // Parse the options we're going to pass to the API apiOptions = parseOptions(ghostGlobals, this, apiOptions); + // @TODO: get helper should make an HTTP request to the Content API {version} return api[apiVersion][controller][action](apiOptions).then(function success(result) { var blockParams; diff --git a/core/server/helpers/prev_next.js b/core/server/helpers/prev_next.js index f0bcf70347..8a6685e18c 100644 --- a/core/server/helpers/prev_next.js +++ b/core/server/helpers/prev_next.js @@ -53,7 +53,10 @@ fetch = function fetch(options, data) { const apiOptions = buildApiOptions(options, this); const apiVersion = data.root._locals.apiVersion; - return api[apiVersion].posts + // @TODO: prev_next helper should make an HTTP request to the Content API {version} + const controller = api[apiVersion].postsPublic || api[apiVersion].posts; + + return controller .browse(apiOptions) .then(function handleSuccess(result) { var related = result.posts[0];