client/src/api/index.js
author ymh <ymh.work@gmail.com>
Tue, 27 Nov 2018 15:45:45 +0100
changeset 179 e7c7e6e0a8bc
parent 62 b2514a9bcd49
permissions -rw-r--r--
Add protocols module, and add a way to change the config ini file path


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

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