diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-05-29 02:44:25 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-05-29 02:44:25 +0200 |
| commit | f5c04fc92a4e23948b477f4f579b953e8edd6bb2 (patch) | |
| tree | 2a7de103dfde225b6ba90f70ba20d8b1c1d951bc /app/client/api/index.js | |
| parent | b0440c213ac9f97e558b3d15d3740dab234b7b79 (diff) | |
omg making an api request
Diffstat (limited to 'app/client/api/index.js')
| -rw-r--r-- | app/client/api/index.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/app/client/api/index.js b/app/client/api/index.js index 6f12227..82cd364 100644 --- a/app/client/api/index.js +++ b/app/client/api/index.js @@ -1,6 +1,3 @@ -import FormData from 'form-data' -import fetch from 'node-fetch' - import { crud_actions } from './crud.actions' /* @@ -16,10 +13,10 @@ so you can do ... folderActions.upload(12, form_data) */ -export default [ +export const actions = [ 'folder', 'file', 'dataset', 'task', 'user', -].reduce((a,b) => (a[b + 'Actions'] = crud_actions(b)) && a, {}) +].reduce((a,b) => (a[b] = crud_actions(b)) && a, {}) |
