Updated TODO's

no issue
This commit is contained in:
kirrg001 2019-02-27 18:08:36 +01:00
parent f8d1e38290
commit a180d4e103
3 changed files with 3 additions and 3 deletions

View File

@ -64,7 +64,7 @@ function getPostData(req, res, next) {
}
// @NOTE: amp is not supported for static pages
// @TODO: AMP should make an HTTP request to the Content API {version}
// @TODO: https://github.com/TryGhost/Ghost/issues/10548
helpers.entryLookup(urlWithoutSubdirectoryWithoutAmp, {permalinks, query: {controller: 'postsPublic', resource: 'posts'}}, res.locals)
.then((result) => {
if (result && result.entry) {

View File

@ -163,7 +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}
// @TODO: https://github.com/TryGhost/Ghost/issues/10548
return api[apiVersion][controller][action](apiOptions).then(function success(result) {
var blockParams;

View File

@ -53,7 +53,7 @@ fetch = function fetch(options, data) {
const apiOptions = buildApiOptions(options, this);
const apiVersion = data.root._locals.apiVersion;
// @TODO: prev_next helper should make an HTTP request to the Content API {version}
// @TODO: https://github.com/TryGhost/Ghost/issues/10548
const controller = api[apiVersion].postsPublic || api[apiVersion].posts;
return controller