Update fetch URL in graph-main.js

This commit is contained in:
sietse jonker
2024-03-30 22:57:43 +01:00
parent 034dd2b660
commit a381fa1ee1

View File

@@ -109,15 +109,14 @@ function createFilterContainer() {
// Get request to fetch data from the server
function fetchData() {
fetch("http://145.92.8.114/getNodeInfo")
fetch("http://145.92.8.114/getMeasurements")
.then((response) => {
if (!response.ok) {
throw new Error("Network response was not ok");
}
return response.json();
})
.then((data) => {
data.push(...data);
.then((measurements) => {
createFilterContainer();
})
.catch((error) => {