--- a/client/src/sagas/index.js Mon Jun 19 17:56:41 2017 +0200
+++ b/client/src/sagas/index.js Mon Jun 19 17:30:03 2017 +0200
@@ -4,6 +4,7 @@
import PouchDBFind from 'pouchdb-find';
import Immutable from 'immutable';
import APIClient from '../APIClient';
+import config from '../config';
PouchDB.debug.disable();
PouchDB.plugin(PouchDBFind);
@@ -14,7 +15,7 @@
index: { fields: ['session'] }
});
-const client = new APIClient('http://localhost:8000')
+const client = new APIClient(config.apiRootUrl);
// ---