Ghost/core/frontend/services/data/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

5 lines
105 B
JavaScript

module.exports = {
entryLookup: require('./entry-lookup'),
fetchData: require('./fetch-data')
};