var data = {
name: 'John',
email: 'john@example.com'
};
axios.post('/api/submit', data)
.then(function (response) {
// Handle the response
console.log(response.data);
})
.catch(function (error) {
// Handle any errors
console.error(error);
});