diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-07-22 14:05:15 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-07-22 14:05:15 +0200 |
| commit | ef78bc6a084f92b4794e987b5832240d85b6479e (patch) | |
| tree | b314b630800db6aa60f28ef0b115625e6ca176db /animism-align/frontend/app/api/index.js | |
| parent | 85d4cb9addf9ca887d3440b2786665d67d9917c4 (diff) | |
refactor app using babel module-resolver
Diffstat (limited to 'animism-align/frontend/app/api/index.js')
| -rw-r--r-- | animism-align/frontend/app/api/index.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/animism-align/frontend/app/api/index.js b/animism-align/frontend/app/api/index.js new file mode 100644 index 0000000..f4be118 --- /dev/null +++ b/animism-align/frontend/app/api/index.js @@ -0,0 +1,17 @@ +// import { crud_actions } from 'api/crud.actions' +// import * as utils from 'app/utils' + +/* +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 { utils } |
