This repository has been archived on 2025-03-30. You can view files and clone it, but cannot push or open issues or pull requests.
hymenobacterdotinfo/app/pods/application/adapter.js
2015-10-01 06:46:51 -07:00

23 lines
421 B
JavaScript

import DS from 'ember-data';
import Ember from 'ember';
export default DS.RESTAdapter.extend({
namespace: function() {
return 'api/' + this.get('globals.genus');
}.property(),
host: function() {
return this.get('globals.apiURL');
}.property(),
coalesceFindRequests: true,
shouldReloadAll: function() {
return true;
},
shouldBackgroundReloadRecord: function() {
return false;
}
});