ENH: Setting up esa, base template (#13)

Fixes #4
This commit is contained in:
Matthew Ryan Dillon 2017-08-30 06:06:31 -07:00 committed by GitHub
parent 75b75358cd
commit 253aac1fd4
27 changed files with 187 additions and 73 deletions

View 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',
});