SHARE
TWEET

Untitled

a guest Aug 25th, 2019 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fetch('/saveInDB/livraison', {
  2.         credentials: 'include',
  3.         method: 'post',
  4.         body: JSON.stringify(values),
  5.         headers: new Headers({'Content-Type': 'application/json'})
  6.       })
  7.       .then(res => res.json())
  8.       .then(res => {
  9.         if (res.error) {
  10.           console.log(res.error);
  11.         } else {
  12.           console.log(res.success);
  13.           commandeStore.display = 'paiement';
  14.           commandeStore.status = '80vw';
  15.         }
  16.       });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top