server/bo_client/app/adapters/application.js
author ymh <ymh.work@gmail.com>
Thu, 06 Apr 2017 11:29:14 +0200
changeset 530 a76bae4795d5
parent 517 3143195e91b4
permissions -rw-r--r--
version 0.0.19
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
32
9765cf7cf817 upgrade to ember-cli 2.2(beta)
ymh <ymh.work@gmail.com>
parents: 28
diff changeset
     1
import RESTAdapter from 'ember-data/adapters/rest';
28
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 20
diff changeset
     2
import ENV from 'bo-client/config/environment';
4
f55970e41793 first skeleton of bo client in ember
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
32
9765cf7cf817 upgrade to ember-cli 2.2(beta)
ymh <ymh.work@gmail.com>
parents: 28
diff changeset
     4
export default RESTAdapter.extend({
517
3143195e91b4 Upgrade ember-aupac-typeahead
ymh <ymh.work@gmail.com>
parents: 304
diff changeset
     5
  namespace: (ENV.APP.backRootURL || ENV.rootURL).replace(/\/$/, '') + '/api/v1'
3143195e91b4 Upgrade ember-aupac-typeahead
ymh <ymh.work@gmail.com>
parents: 304
diff changeset
     6
  // TODO: pass this as configuration
3143195e91b4 Upgrade ember-aupac-typeahead
ymh <ymh.work@gmail.com>
parents: 304
diff changeset
     7
  // host: 'http://localhost:8000'
4
f55970e41793 first skeleton of bo client in ember
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
});