add table scraping log and datatable server side

This commit is contained in:
arifal
2025-01-24 22:29:14 +07:00
parent 5f93a18f60
commit 9aab6f899d
15 changed files with 715 additions and 9 deletions

View File

@@ -76,7 +76,7 @@ class CommonTable {
}
CommonTableInitWithFetchApi(){
fetch(`${GlobalConfig.apiHost}/users`)
fetch(`${GlobalConfig.apiHost}/api/users`)
.then((response) => response.json())
.then((data) => {
console.log("check log response");
@@ -116,7 +116,7 @@ class CommonTable {
},
sort: true,
search: true,
data: data.data
data: data
}).render(document.getElementById("common-table"));
})
.catch((error) => console.error("Error fetching data: " + error));