Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fetch('/auth/login', {
- method: 'POST',
- headers: {'Content-Type': 'application/json'},
- body: JSON.stringify({
- username: 'test',
- password: 'test'
- })
- })
- .then(res => res.json())
- .then(console.log)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement