client/src/api/index.js
author Alexandre Segura <mex.zktk@gmail.com>
Wed, 28 Jun 2017 14:44:02 +0200
changeset 104 d48a74232d22
parent 62 b2514a9bcd49
permissions -rw-r--r--
Go back to homepage on logout.


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

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