forked from v4l3n71n/covas-bo
15 lines
404 B
JavaScript
15 lines
404 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){
|
|
var countTable = document.getElementById("users").querySelector("tbody").querySelectorAll("tr").length;
|
|
|
|
|
|
}) |