client/src/api/index.js
author Alexandre Segura <mex.zktk@gmail.com>
Thu, 29 Jun 2017 17:26:35 +0200
changeset 109 ef62de545a8d
parent 62 b2514a9bcd49
permissions -rw-r--r--
Allow editing margin comment.


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

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