add count client

This commit is contained in:
Valentin CZERYBA 2022-07-26 00:18:42 +02:00
parent 59153ded4c
commit e86a4aa0cf
2 changed files with 3 additions and 2 deletions

View File

@ -148,7 +148,7 @@
<h2>Section title</h2>
<div class="table-responsive">
<table class="table table-striped table-sm">
<table id=users class="table table-striped table-sm">
<thead>
<tr>
<th scope="col">#</th>

View File

@ -9,6 +9,7 @@ axios.interceptors.request.use(function (config) {
});
instance.get("users/count", { withCredentials: true }).then(function(response){
console.log(response.data);
var countTable = document.getElementById("users").querySelector("tbody").querySelectorAll("tr").length;
})