Advertisement
Guest User

Untitled

a guest
Jul 6th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. fetch('/auth/login', {
  2. method: 'POST',
  3. headers: {'Content-Type': 'application/json'},
  4. body: JSON.stringify({
  5. username: 'test',
  6. password: 'test'
  7. })
  8. })
  9. .then(res => res.json())
  10. .then(console.log)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement