added: logs in node app

This commit is contained in:
quenousimporte 2023-07-11 18:16:51 +02:00
parent 7d551915bf
commit 9ca9083c45
1 changed files with 7 additions and 0 deletions

View File

@ -52,6 +52,7 @@ axios.post(`${settings.url}/handler.php`,
notes.splice(notes.indexOf(note), 1); notes.splice(notes.indexOf(note), 1);
notes.unshift(note); notes.unshift(note);
console.log("sending data file to server...");
axios.post(`${settings.url}/handler.php`, axios.post(`${settings.url}/handler.php`,
{ {
action: "push", action: "push",
@ -63,8 +64,14 @@ axios.post(`${settings.url}/handler.php`,
{ {
"Content-type": "application/x-www-form-urlencoded" "Content-type": "application/x-www-form-urlencoded"
} }
}).then(res => {
console.log("done.");
}); });
} }
else
{
console.log("no change.");
}
}) })
rl.close(); rl.close();
}); });