diff options
Diffstat (limited to 'app/client/api/crud.fetch.js')
| -rw-r--r-- | app/client/api/crud.fetch.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/client/api/crud.fetch.js b/app/client/api/crud.fetch.js index 421510b..a160175 100644 --- a/app/client/api/crud.fetch.js +++ b/app/client/api/crud.fetch.js @@ -50,7 +50,7 @@ function _get_headers() { }, } } -function post(data) { +export function post(data) { return { method: 'POST', body: JSON.stringify(data), @@ -69,7 +69,7 @@ export function postBody(data) { }, } } -function put(data) { +export function put(data) { return { method: 'PUT', body: JSON.stringify(data), @@ -79,7 +79,7 @@ function put(data) { }, } } -function destroy(data) { +export function destroy(data) { return { method: 'DELETE', body: JSON.stringify(data), |
