server/bo_client/app/adapters/application.js
author Chloe Laisne <chloe.laisne@gmail.com>
Sun, 02 Oct 2016 19:11:06 +0200
changeset 313 706f10bcdc3c
parent 263 3deace9204de
child 304 20071981ba2a
permissions -rw-r--r--
Treemap shades to node count
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({
263
3deace9204de pass bo_client to ember 2.8, adjust for the hack around the aupac-typeahead bug in 2.8 (c.f. https://github.com/aupac/ember-aupac-typeahead/issues/23)
ymh <ymh.work@gmail.com>
parents: 107
diff changeset
     5
  namespace: ENV.rootURL.replace(/\/$/,"")+'/api/v1',
107
16e1473a6a99 add cors support for api
ymh <ymh.work@gmail.com>
parents: 32
diff changeset
     6
  //TODO: pass this as configuration
16e1473a6a99 add cors support for api
ymh <ymh.work@gmail.com>
parents: 32
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
});