mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 10:21:36 +03:00
4ee2fcd869
- 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
34 lines
583 B
JavaScript
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');
|
|
}
|
|
};
|