app/adapters/ror.js
import JSONAPIAdapter from '@ember-data/adapter/json-api';
import DataAdapterMixin from 'ember-simple-auth/mixins/data-adapter-mixin';
import ENV from 'bracco/config/environment';
export default JSONAPIAdapter.extend(DataAdapterMixin, {
host: ENV.ROR_API_URL,
init() {
this._super(...arguments);
this.set('headers', {
'Content-Type': 'application/json',
Accept: 'application/json'
});
},
pathForType() {
return 'organizations';
},
authorize() {}
});