client/src/api/index.js
author ymh <ymh.work@gmail.com>
Wed, 21 Jun 2017 03:23:24 +0200
changeset 68 6e18b31b0ad5
parent 62 b2514a9bcd49
permissions -rw-r--r--
Correct session creation and add offline to the persisted state


export default apiClient => (effect, action) => {

  const { method, url, data } = effect;
  return apiClient.request(method, url, data);
}