Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fetch('/saveInDB/livraison', {
- credentials: 'include',
- method: 'post',
- body: JSON.stringify(values),
- headers: new Headers({'Content-Type': 'application/json'})
- })
- .then(res => res.json())
- .then(res => {
- if (res.error) {
- console.log(res.error);
- } else {
- console.log(res.success);
- commandeStore.display = 'paiement';
- commandeStore.status = '80vw';
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement