Add script for reading config

This commit is contained in:
Saba 2021-11-27 10:50:05 -05:00
parent 3db06eee3f
commit 2e4a56daa3

View file

@ -0,0 +1,11 @@
var showConfig = document.getElementById("show-config");
showConfig.addEventListener("click", () => {
fetch("/config")
.then(response => response.json())
.then(data => {
for (let key in data) {
console.log('key: ', key);
console.log(data[key]);
}
});
});