parent
75b75358cd
commit
253aac1fd4
27 changed files with 187 additions and 73 deletions
12
app/adapters/application.js
Normal file
12
app/adapters/application.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
import DS from 'ember-data';
|
||||
import ENV from '../config/environment';
|
||||
import DataAdapterMixin from 'ember-simple-auth/mixins/data-adapter-mixin';
|
||||
|
||||
const { JSONAPIAdapter } = DS;
|
||||
const { APP: { API_HOST, API_NAMESPACE } } = ENV;
|
||||
|
||||
export default JSONAPIAdapter.extend(DataAdapterMixin, {
|
||||
namespace: API_NAMESPACE,
|
||||
host: API_HOST,
|
||||
authorizer: 'authorizer:application',
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue