client/src/api/index.js
author Alexandre Segura <mex.zktk@gmail.com>
Thu, 29 Jun 2017 12:06:48 +0200
changeset 106 fffefefed507
parent 62 b2514a9bcd49
permissions -rw-r--r--
Fix bug when there is no group.


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

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