server/bo_client/app/adapters/application.js
author ymh <ymh.work@gmail.com>
Thu, 03 Nov 2016 09:44:11 +0100
changeset 390 f4fed295115b
parent 304 20071981ba2a
child 517 3143195e91b4
permissions -rw-r--r--
put virtualenv activation during build in comment. That means that for the moment the build machine must be provisionned beforehand, or ansible must be available globally

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'
});