client/src/api/index.js
author salimr <riwad.salim@yahoo.fr>
Mon, 03 Sep 2018 20:02:14 +0200
changeset 154 a28361bda28c
parent 62 b2514a9bcd49
permissions -rw-r--r--
Adapt all css classes with Bootstrap 4 Utilities


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

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