Как отправить форму js + axios?

есть форма - input[name="username"], input[name="phone"]

как отправить данные из этой формы в JS + axios? Поля формы могут меняться

const callForm = () => {
  const form = document.getElementById('form-call');

  form.addEventListener('submit', (e) => {
    e.preventDefault();

  axios.post()
  .then(function (response) {
    
  })
  .catch(function (error) {

  });
    
  });
}

export default callForm;

Ответы (0 шт):