server/bo_client/app/adapters/application.js
changeset 28 b0b56e0f8c7f
parent 20 a9b98b16b053
child 32 9765cf7cf817
--- a/server/bo_client/app/adapters/application.js	Fri Jan 15 15:27:56 2016 +0100
+++ b/server/bo_client/app/adapters/application.js	Fri Jan 15 15:35:00 2016 +0100
@@ -1,5 +1,6 @@
 import DS from 'ember-data';
+import ENV from 'bo-client/config/environment';
 
 export default DS.RESTAdapter.extend({
-  namespace: 'api/v1',
+  namespace: ENV.baseURL.replace(/\/$/,"")+'/api/v1',
 });