client/src/api/index.js
author salimr <riwad.salim@yahoo.fr>
Tue, 25 Sep 2018 02:02:13 +0200
changeset 157 5c3af4f10e92
parent 62 b2514a9bcd49
permissions -rw-r--r--
Update slate editor


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

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