vendredi 26 décembre 2014

Is Ember RESTAdapter namespace inheritable?

Suppose we have the following code:



App.ApplicationAdapter = DS.RESTAdapter.extend({
namespace: '/webapp_name'
host: 'http://localhost:8080'
});

App.PersonAdapter = DS.RESTAdapter.extend({
namespace: '/foo/bar'
});


So, is the model App.Person targeting at http://localhost:8080/webapp_name/foo/bar/person or http://localhost:8080/foo/bar/person?





Aucun commentaire:

Enregistrer un commentaire