Merge pull request #54 from KevinMidboe/api_save-user-w-request

Api save user w request
This commit is contained in:
2017-10-23 15:36:28 +02:00
committed by GitHub
3 changed files with 10 additions and 11 deletions

View File

@@ -46,6 +46,7 @@ export function fetchJSON(url, method, data) {
headers: new Headers({
'Content-Type': 'application/json',
'authorization': getCookie('token'),
'loggedinuser': getCookie('loggedInUser'),
}),
body: JSON.stringify(data)
}).then(checkStatus).then(parseJSON);