server/bo_client/app/adapters/application.js
author ymh <ymh.work@gmail.com>
Mon, 06 Feb 2017 15:22:39 +0100
changeset 500 4f507ba2bb4c
parent 304 20071981ba2a
child 517 3143195e91b4
permissions -rw-r--r--
add alternativeTitle. Prepare #0025746
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({
304
20071981ba2a add location and geonames resolvers and api
ymh <ymh.work@gmail.com>
parents: 263
diff changeset
     5
    namespace: ENV.rootURL.replace(/\/$/,'')+'/api/v1'
20071981ba2a add location and geonames resolvers and api
ymh <ymh.work@gmail.com>
parents: 263
diff changeset
     6
    //TODO: pass this as configuration
20071981ba2a add location and geonames resolvers and api
ymh <ymh.work@gmail.com>
parents: 263
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
});