client/src/api/index.js
author salimr <riwad.salim@yahoo.fr>
Thu, 16 Aug 2018 22:32:36 +0200
changeset 146 4f4bb2b3ef39
parent 62 b2514a9bcd49
permissions -rw-r--r--
Removing Modal from react-bootstrap and adding react-modal


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

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