@ezy wrote:
Am I able to nest Ember Data adapters?
For example, say if I have a model
//models/site.js
with a template//templates/site.hbs
and I want to make a customquery()
request to${ENV.APP.API_HOST}/customers/${org}/sites
- as per the docs I can simply customise thequery()
function at//adapters/site.js
.But what if I have a second template at
//templates/sites/show.hbs
and I need to query a second distinctly different endpoint such as${ENV.APP.API_HOST}/customers/${org}/sites/${id}
(or any other deeply nested data endpoint) can I setup an adapter under//adapters/sites/show.js
? I can't seem to achieve that with Ember Data currently.
Posts: 1
Participants: 1