From f5c04fc92a4e23948b477f4f579b953e8edd6bb2 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 29 May 2018 02:44:25 +0200 Subject: omg making an api request --- app/client/api/index.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'app/client/api/index.js') 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, {}) -- cgit v1.2.3-70-g09d2