server/bo_client/app/adapters/application.js
author ymh <ymh.work@gmail.com>
Wed, 28 Sep 2016 15:58:18 +0200
changeset 305 ff6cf3fc5f40
parent 304 20071981ba2a
child 517 3143195e91b4
permissions -rw-r--r--
api reorganisation and propagation if the changes + some code cleaning

import RESTAdapter from 'ember-data/adapters/rest';
import ENV from 'bo-client/config/environment';

export default RESTAdapter.extend({
    namespace: ENV.rootURL.replace(/\/$/,'')+'/api/v1'
    //TODO: pass this as configuration
    //host: 'http://localhost:8000'
});