diff --git a/Server/public/res/js/controller.js b/Server/public/res/js/controller.js deleted file mode 100644 index 04c0fd9..0000000 --- a/Server/public/res/js/controller.js +++ /dev/null @@ -1,3 +0,0 @@ -function sendNodeHeartbeat(nodeId) { - console.log(nodeId); -} \ No newline at end of file diff --git a/Server/public/res/js/node.js b/Server/public/res/js/node.js index 41b4a4a..68dedd6 100644 --- a/Server/public/res/js/node.js +++ b/Server/public/res/js/node.js @@ -80,7 +80,7 @@ function createToast(notificationMessage){ $('.toast').toast('show'); } -function checkInByNodeId(nodeId){ +function sendNodeHeartbeat(nodeId){ const Http = new XMLHttpRequest(); const url='/nodes/'+nodeId; Http.open("GET", url); diff --git a/Server/views/controller.ejs b/Server/views/controller.ejs index 28099a9..6831d79 100644 --- a/Server/views/controller.ejs +++ b/Server/views/controller.ejs @@ -7,5 +7,5 @@ <%- include('partials/bodyEnd.ejs') %> - + <%- include('partials/htmlFooter.ejs') %> \ No newline at end of file diff --git a/Server/views/node.ejs b/Server/views/node.ejs index 2a1bb49..9575b9f 100644 --- a/Server/views/node.ejs +++ b/Server/views/node.ejs @@ -30,7 +30,7 @@ Leave Server - Check-in with Node + Check-in with Node