forked from v4l3n71n/covas-bo
endpoint count
This commit is contained in:
parent
950669bd0e
commit
59153ded4c
@ -1,6 +1,14 @@
|
|||||||
checkToken();
|
checkToken();
|
||||||
|
|
||||||
const requestInterceptors = axios.interceptors.request.use(function(){
|
axios.interceptors.request.use(function (config) {
|
||||||
checkToken();
|
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);
|
||||||
|
|
||||||
|
})
|
Loading…
x
Reference in New Issue
Block a user