diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-09-17 00:46:06 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-09-17 00:46:06 +0200 |
| commit | d5d76a51cf79238c3177aa507213191d279d45ed (patch) | |
| tree | e89bb1e6c39267b3eeccdab8d6d1d8a2dfd2b535 /app/client/api | |
| parent | d3e4bb3ed2585859a3adeb7eeff35b7c75ebd840 (diff) | |
signup works
Diffstat (limited to 'app/client/api')
| -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), |
