How I get just one model inside Route


#1

Hello, I make some blog with http-mock.

I can find post model (multiple) using below code.

// posts.js (route)
import Ember from 'ember';

export default Ember.Route.extend({
  model() {
    return Ember.RSVP.hash({
      posts: this.store.findAll('post')
    });
  },
 setupController(controller, models)
 {
 return controller.setProperties(models);
 },
});

I just one model setting. it has title, subtitle. …/api/blog-setting/ returns me

{“blog-setting”:{“title”:“I am XXX”,“subtitle”:“Lorem Ipsum”}}

but I can’t find the solution for get blog-setting.

i tried this.store.findAll('setting') but return error

How can I get just one model?