Variable consistency

This commit is contained in:
Dita Aji Pratama 2025-08-13 07:26:38 +07:00
parent 9064fbb537
commit 99bd1844a8

View File

@ -9,9 +9,9 @@ sendHttpRequest("/api/auth/roles/list", "POST", null,
const ls = JSON.parse(response);
ls.data.forEach(data => {
const postElement = document.createElement("div");
const itemElement = document.createElement("div");
postElement.innerHTML = `<li>[${data.id}] ${data.name}: ${data.count} User(s)</li>`;
lister.appendChild(postElement);
lister.appendChild(itemElement);
});
}
}, "application/json", `Bearer ${token}`