Skip to content

Instantly share code, notes, and snippets.

@isaidspaghetti
Last active August 20, 2020 20:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isaidspaghetti/a024a228c31201c771974142b5177e43 to your computer and use it in GitHub Desktop.
Save isaidspaghetti/a024a228c31201c771974142b5177e43 to your computer and use it in GitHub Desktop.
e.preventDefault();
const response = await fetch('http://localhost:8080/customer-login', {
method: 'POST',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json',
},
body: JSON.stringify({
firstName,
lastName,
email,
}),
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment