summaryrefslogtreecommitdiff
path: root/frontend/api/index.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-09-26 14:56:02 +0200
committerJules Laplace <julescarbon@gmail.com>2020-09-26 14:56:02 +0200
commita17b76ac75f506f5da6fe8adf9c36632b60d4226 (patch)
treeabb0af0c4409b830dea2ef808c146223ee973933 /frontend/api/index.js
parent2231a6e1c05b07bb7ec5906716aedec93d02429c (diff)
refactor to use app-rooted js imports
Diffstat (limited to 'frontend/api/index.js')
-rw-r--r--frontend/api/index.js24
1 files changed, 0 insertions, 24 deletions
diff --git a/frontend/api/index.js b/frontend/api/index.js
deleted file mode 100644
index 26a8baa..0000000
--- a/frontend/api/index.js
+++ /dev/null
@@ -1,24 +0,0 @@
-import { crud_actions } from './crud.actions'
-import * as util from '../util'
-
-/*
-for our crud events, create corresponding actions
-the actions fire a 'loading' event, call the underlying api method, and then resolve.
-so you can do ...
- import { folderActions } from '../../api'
- folderActions.index({ module: 'samplernn' })
- folderActions.show(12)
- folderActions.create({ module: 'samplernn', name: 'foo' })
- folderActions.update(12, { module: 'pix2pix' })
- folderActions.destroy(12, { confirm: true })
- folderActions.upload(12, form_data)
-*/
-
-export { util }
-
-export const actions = [
- 'graph',
- 'page',
- 'tile',
- 'upload',
-].reduce((a,b) => (a[b] = crud_actions(b)) && a, {})