From d5d76a51cf79238c3177aa507213191d279d45ed Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 17 Sep 2018 00:46:06 +0200 Subject: signup works --- app/client/api/crud.fetch.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/client/api') 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), -- cgit v1.2.3-70-g09d2