diff --git a/views/scripts/readWriteConfig.js b/views/scripts/readWriteConfig.js new file mode 100644 index 00000000..36b3fbc8 --- /dev/null +++ b/views/scripts/readWriteConfig.js @@ -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]); + } + }); +}); \ No newline at end of file