server/bo_client/app/adapters/application.js
author Chloe Laisne <chloe.laisne@gmail.com>
Wed, 06 Jul 2016 15:01:29 +0200
changeset 231 b883755cc0b8
parent 107 16e1473a6a99
child 263 3deace9204de
permissions -rw-r--r--
Remove close button on notice when not from queryparams
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({
28
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 20
diff changeset
     5
  namespace: ENV.baseURL.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
});