Find in store with slug (ember)


#1

According to ember data documentation, if i want to make a call on my back-end application such as /applications/123 i use the code below.

adapters/application.js

import DS from ‘ember-data’;

export default DS.RESTAdapter.extend({ namespace: ‘api/v1’, host:‘http://xxxxx.com/’,
}); routes/home.js

import Ember from ‘ember’;

export default Ember.Route.extend({ model: function (params) { return this.store.find(“Application”, params.id); } }); But, i want to make a call like /applications/123/analytics, where analytic’s call is

model: function () { return this.store.find(‘Analytic’); } Any help?