mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
Updated TODO's
no issue
This commit is contained in:
parent
f8d1e38290
commit
a180d4e103
@ -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) {
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user