Global injection
This commit is contained in:
parent
c70dd933c5
commit
559c0a3d9f
9 changed files with 76 additions and 9 deletions
|
@ -1,10 +1,13 @@
|
|||
import DS from 'ember-data';
|
||||
import Ember from 'ember';
|
||||
import config from '../../config/environment';
|
||||
|
||||
export default DS.RESTAdapter.extend({
|
||||
namespace: 'api/' + config.genus,
|
||||
host: config.apiURL,
|
||||
namespace: function() {
|
||||
return 'api/' + this.get('globals.genus');
|
||||
}.property(),
|
||||
host: function() {
|
||||
return this.get('globals.apiURL');
|
||||
}.property(),
|
||||
coalesceFindRequests: true,
|
||||
ajaxError: function(jqXHR) {
|
||||
// http://stackoverflow.com/a/24027443
|
||||
|
|
Reference in a new issue