I use Ember 2.2.0 with ember-data 2.2.1;
in my app I have a "photo" model; in different routes I need to fetch the data for the "photo" model from different endpoints of my REST api;
for example: in the /photos route I do a findAll('photo') and ember-data calls the /photos endpoint of the api, that correctly returns all photos;
in the /feed route instead I need to fetch photos from the /feed endpoint of the REST api; the model returned is still photos; in this case I can't make a "find" since in that case ember-data will issue a call to /photos;
how can I have both of this working together?
Aucun commentaire:
Enregistrer un commentaire