I have a Host model on ember-data:
App.Host = DS.Model.extend
name: DS.attr 'string'
And I using the DS.RESTAdapter
.
EmberJS calls /hosts
to get hosts which is normal.
My problem is the url to get hosts is not /hosts
but /nagios/hosts
.
How can I specify this url only for Host model?
I already tried those answers:
- https://stackoverflow.com/a/17956243/1731473
- https://stackoverflow.com/a/16453742/1731473
- https://stackoverflow.com/a/15566425/1731473
Without any success.
Currently using:
Ember : 1.10.0
Ember Data : 1.0.0-beta.15
jQuery : 2.0.3
Thanks for help.