Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- await axios.post(OPENROUTE_URL, JSON.stringify(cords),{
- headers : {
- "Access-Control-Allow-Headers": "Origin",
- "X-Requested-With" : "XMLHttpRequest",
- 'Content-Type' : 'application/geo+json',
- 'Accept': 'application/json, application/geo+json, application/gpx+xml, img/png; charset=utf-8',
- 'Authorization': '5b3ce3597851110001cf62480134a9c2d5bc4bfcabb39ce9cb687b4d'
- }
- })
- .then((response) => {
- this.res = response
- })
- .catch((error) => {
- this.res = error
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement