fetch("http://127.0.0.1:8080/v1.0/users", {
method: 'POST',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: JSON.stringify({
email: 'foo',
pass: 'bar'
})
}).then(response => console.log(response))
Last active
February 19, 2016 17:40
-
-
Save clintonhalpin/05d31e47f50c5f472c0a to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment