added: logs in node app
This commit is contained in:
parent
7d551915bf
commit
9ca9083c45
|
@ -52,6 +52,7 @@ axios.post(`${settings.url}/handler.php`,
|
|||
notes.splice(notes.indexOf(note), 1);
|
||||
notes.unshift(note);
|
||||
|
||||
console.log("sending data file to server...");
|
||||
axios.post(`${settings.url}/handler.php`,
|
||||
{
|
||||
action: "push",
|
||||
|
@ -63,8 +64,14 @@ axios.post(`${settings.url}/handler.php`,
|
|||
{
|
||||
"Content-type": "application/x-www-form-urlencoded"
|
||||
}
|
||||
}).then(res => {
|
||||
console.log("done.");
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
console.log("no change.");
|
||||
}
|
||||
})
|
||||
rl.close();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue