Answers for ".post axios"

38

axios

axios.get('url')
  .then((response) => {
  
    // Code for handling the response
  })
  .catch((error) => {
  
    // Code for handling the error
  })
Posted by: Guest on June-17-2021
0

axios post

axios.post('https:sample-endpoint.com/user', {
    Name: 'Fred',
    Age: '23'
  })
  .then(function (response) {
    console.log(response);
  })
Posted by: Guest on August-17-2021

Browse Popular Code Answers by Language