Setup authorizer and custom session for account
This commit is contained in:
parent
30b1706868
commit
52979ac9e2
3 changed files with 29 additions and 1 deletions
|
@ -1,6 +1,9 @@
|
|||
import DS from 'ember-data';
|
||||
import DataAdapterMixin from 'ember-simple-auth/mixins/data-adapter-mixin';
|
||||
|
||||
export default DS.RESTAdapter.extend(DataAdapterMixin, {
|
||||
authorizer: 'authorizer:application',
|
||||
|
||||
export default DS.RESTAdapter.extend({
|
||||
namespace: function() {
|
||||
return 'api/' + this.get('globals.genus');
|
||||
}.property(),
|
||||
|
|
Reference in a new issue