Advertisement
Guest User

Untitled

a guest
Sep 14th, 2017
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. async sendDataLogin(item) {
  2. const response = await fetch('http://10.228.28.56:8087/cr/login', {
  3. method: 'POST',
  4. headers: new Headers({
  5. 'Content-Type': 'application/json'
  6. }),
  7. body: JSON.stringify({
  8. user: 'eee',
  9. pass: 'eee',
  10. entity: '2'
  11. })
  12. });
  13. const data = await response.json();
  14. return data;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement