client/src/api/index.js
author Alexandre Segura <mex.zktk@gmail.com>
Fri, 23 Jun 2017 18:01:40 +0200
changeset 84 bf35a7737f94
parent 62 b2514a9bcd49
permissions -rw-r--r--
Move logic to NotesList component.


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

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