dimanche 12 mars 2017

How get inside adapter a parameter from route?

Take a look at adapter below, I have "hand written" the parameter santander. I wish get this dynamically from route. Example: http://ift.tt/2mQ5Ua1.

import DS from 'ember-data';
import ENV from 'apollo/config/environment';
import DataAdapterMixin from 'ember-simple-auth/mixins/data-adapter-mixin';

export default DS.JSONAPIAdapter.extend(DataAdapterMixin, {
  host: 'https://santander.' + ENV.APP.host,
  authorizer: 'authorizer:token'
});

This is possible? Thanks.




Aucun commentaire:

Enregistrer un commentaire