equal
deleted
inserted
replaced
1 import RESTAdapter from 'ember-data/adapters/rest'; |
1 import RESTAdapter from 'ember-data/adapters/rest'; |
2 import ENV from 'bo-client/config/environment'; |
2 import ENV from 'bo-client/config/environment'; |
3 |
3 |
4 export default RESTAdapter.extend({ |
4 export default RESTAdapter.extend({ |
5 namespace: ENV.rootURL.replace(/\/$/,'')+'/api/v1' |
5 namespace: (ENV.APP.backRootURL || ENV.rootURL).replace(/\/$/, '') + '/api/v1' |
6 //TODO: pass this as configuration |
6 // TODO: pass this as configuration |
7 //host: 'http://localhost:8000' |
7 // host: 'http://localhost:8000' |
8 }); |
8 }); |