|
@@ -1,3 +1,14 @@
|
|
|
$(".btn-logout").click(function() {
|
|
|
- window.location.href = 'index.html';
|
|
|
+ axios({
|
|
|
+ method: 'get',
|
|
|
+ url: 'https://www.choozmo.com:8887/logout',
|
|
|
+ headers: {
|
|
|
+ 'accept': 'application/json',
|
|
|
+ }
|
|
|
+ }).then(res => {
|
|
|
+ console.log(res.data);
|
|
|
+ window.location.href = 'index.html';
|
|
|
+ }).catch(err => {
|
|
|
+ console.log(err);
|
|
|
+ });
|
|
|
});
|