Update fetch URL in graph-main.js
This commit is contained in:
@@ -109,15 +109,14 @@ function createFilterContainer() {
|
|||||||
|
|
||||||
// Get request to fetch data from the server
|
// Get request to fetch data from the server
|
||||||
function fetchData() {
|
function fetchData() {
|
||||||
fetch("http://145.92.8.114/getNodeInfo")
|
fetch("http://145.92.8.114/getMeasurements")
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
throw new Error("Network response was not ok");
|
throw new Error("Network response was not ok");
|
||||||
}
|
}
|
||||||
return response.json();
|
return response.json();
|
||||||
})
|
})
|
||||||
.then((data) => {
|
.then((measurements) => {
|
||||||
data.push(...data);
|
|
||||||
createFilterContainer();
|
createFilterContainer();
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
|
Reference in New Issue
Block a user