server/bo_client/app/adapters/application.js
author ymh <ymh.work@gmail.com>
Tue, 19 Jan 2016 19:18:34 +0100
changeset 109 d22ed5792f8e
parent 107 16e1473a6a99
child 263 3deace9204de
permissions -rw-r--r--
Correct transaction management. cf. bug https://openrdf.atlassian.net/browse/SES-2295 and tomcat default management of PUT request with form data (application/x-www-form-urlencoded encoded)
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
});