diff --git a/web/js/home.js b/web/js/home.js index 705c10b..2f0d7ed 100644 --- a/web/js/home.js +++ b/web/js/home.js @@ -1,6 +1,14 @@ checkToken(); -const requestInterceptors = axios.interceptors.request.use(function(){ +axios.interceptors.request.use(function (config) { checkToken(); -}); + return config; + }, function (error) { + // Do something with request error + return Promise.reject(error); + }); +instance.get("users/count", { withCredentials: true }).then(function(response){ + console.log(response.data); + +}) \ No newline at end of file