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
|
||||
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) => {
|
||||
|
Reference in New Issue
Block a user