According to ember data documentation, if i want to make a call on my back-end application such as /photos/123 i use the code below.
App.PhotoRoute = Ember.Route.extend({
model: function(params) {
return this.store.find('photo', params.photo_id);
}
});
But, i want to make a call like /photos/123/types. Any help?
Aucun commentaire:
Enregistrer un commentaire