Created
August 13, 2019 21:59
-
-
Save Franckapik/f5ea8374a28e0fa74373f2096c540295 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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'; | |
| } | |
| }); |
Author
Franckapik
commented
Aug 13, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment