common.js 359 B

1234567891011121314
  1. $(".btn-logout").click(function() {
  2. axios({
  3. method: 'get',
  4. url: 'https://www.choozmo.com:8887/logout',
  5. headers: {
  6. 'accept': 'application/json',
  7. }
  8. }).then(res => {
  9. console.log(res.data);
  10. window.location.href = 'index.html';
  11. }).catch(err => {
  12. console.log(err);
  13. });
  14. });