client/src/api/index.js
author Alexandre Segura <mex.zktk@gmail.com>
Tue, 27 Jun 2017 10:54:04 +0200
changeset 96 b58463d7dc8e
parent 62 b2514a9bcd49
permissions -rw-r--r--
Also delete notes when deleting session.


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

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