cms/app-client/app/adapters/application.js
author ymh <ymh.work@gmail.com>
Thu, 25 Feb 2016 10:20:01 +0100
changeset 130 fac22d8c2df8
parent 126 e87a340711a4
child 245 c9dd78a43b07
permissions -rw-r--r--
add subjects to model + simple display on bo + add command to downloads documents to fixtures for test

import RESTAdapter from 'ember-data/adapters/rest';
import ENV from 'app-client/config/environment';

export default RESTAdapter.extend({
  namespace: ENV.baseURL.replace(/\/$/,"")+'/api/v1',
  //TODO: pass this as configuration
  //host: 'http://localhost:8000'
});

//export { default } from 'ember-data-fixture-adapter';

// export default DS.RESTAdapter.extend({
//   host: 'http://127.0.0.1:8000',
//   namespace: 'api',
// });