diff --git a/dati2.html b/dati2.html index 3f1779e..752310f 100644 --- a/dati2.html +++ b/dati2.html @@ -26,7 +26,7 @@ function writ() { } function scan() { - fetch('http://192.168.1.3:7771/scan', { + fetch('http://192.168.1.3:3000/scan', { method: 'GET', headers: { 'Content-Type': 'application/json', @@ -60,7 +60,7 @@ async function azz1() { } function toc() { - fetch('http://192.168.1.3:7771/auth/login', { + fetch('http://192.168.1.3:3000/auth/login', { method: 'POST', headers: { 'Content-Type': 'application/json', @@ -80,7 +80,7 @@ function myPost(json) { myHeaders.append('Content-Type', 'application/json'); //console.log(myHeaders.get("Content-Type")); //console.log(myHeaders.get("Authorization")); - fetch('http://192.168.1.3:7771/photos', { + fetch('http://192.168.1.3:3000/photos', { method: 'POST', headers: myHeaders, body: JSON.stringify(json), @@ -92,7 +92,7 @@ function myPost(json) { function myGet() { const myHeaders = new Headers(); myHeaders.append('Authorization', 'Bearer ' + tok); - fetch('http://192.168.1.3:7771/photos', { + fetch('http://192.168.1.3:3000/photos', { method: 'GET', headers: myHeaders, }) @@ -110,7 +110,7 @@ function myDel(id) { myHeaders.append('Content-Type', 'application/json'); //console.log(myHeaders.get("Content-Type")); //console.log(myHeaders.get("Authorization")); - fetch('http://192.168.1.3:7771/photos/'+id, { + fetch('http://192.168.1.3:3000/photos/'+id, { method: 'DELETE', headers: myHeaders, }) @@ -122,7 +122,7 @@ function myDel(id) { function lineGet(dir) { const myHeaders = new Headers(); myHeaders.append('Authorization', 'Bearer ' + tok); - fetch('http://192.168.1.3:7771/'+dir, { + fetch('http://192.168.1.3:3000/'+dir, { method: 'GET', headers: myHeaders, })