Ghost/core/frontend/services/routing/helpers/index.js
Hannah Wolfe 4ee2fcd869
Moved frontend data helpers into their own service
- Some of the helpers inside the routing service would be better suited to their own service
- These two helpers fetchData and entryLookup talk to the API to get data & so make a decent start for a data service
- The data service would be the single point of contact with the API for the frontend
- Doing this now cos I'm moving some files around ahead of deleting things for 5.0
2022-04-05 13:38:42 +01:00

34 lines
583 B
JavaScript

module.exports = {
get renderEntries() {
return require('./render-entries');
},
get formatResponse() {
return require('./format-response');
},
get renderEntry() {
return require('./render-entry');
},
get renderer() {
return require('./renderer');
},
get templates() {
return require('./templates');
},
get secure() {
return require('./secure');
},
get handleError() {
return require('./error');
},
get context() {
return require('./context');
}
};