add table scraping log and datatable server side
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user