backoffice/web/js/home.js
2022-07-26 00:08:33 +02:00

14 lines
323 B
JavaScript

checkToken();
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);
})