Setup authorizer and custom session for account

This commit is contained in:
Matthew Ryan Dillon 2015-10-20 15:04:14 -07:00
parent 30b1706868
commit 52979ac9e2
3 changed files with 29 additions and 1 deletions

View file

@ -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(),