yarn-queue.js 551 B

12345678910111213141516171819
  1. import DS from 'ember-data';
  2. export default DS.JSONAPIAdapter.extend({
  3. headers: {
  4. Accept: 'application/json'
  5. },
  6. host: 'http://localhost:1337/localhost:8088', // configurable
  7. namespace: 'ws/v1/cluster', // common const
  8. pathForType(modelName) {
  9. return 'scheduler'; // move to some common place, return path by modelname.
  10. },
  11. ajax(url, method, hash) {
  12. hash = hash || {};
  13. hash.crossDomain = true;
  14. hash.xhrFields = {withCredentials: true};
  15. hash.targetServer = "RM";
  16. return this._super(url, method, hash);
  17. }
  18. });