diff options
Diffstat (limited to 'web/nms.gathering.org/js/nms.js')
-rw-r--r-- | web/nms.gathering.org/js/nms.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/web/nms.gathering.org/js/nms.js b/web/nms.gathering.org/js/nms.js index 3fa1840..0aba266 100644 --- a/web/nms.gathering.org/js/nms.js +++ b/web/nms.gathering.org/js/nms.js @@ -764,7 +764,7 @@ function updatePing() nms.outstandingAjaxRequests++; $.ajax({ type: "GET", - url: "/ping.pl" + now, + url: "/api/public/ping" + now, dataType: "text", success: function (data, textStatus, jqXHR) { nms.ping_data = JSON.parse(data); @@ -813,7 +813,7 @@ function commentChange(id,state) } $.ajax({ type: "POST", - url: "/comment-change.pl", + url: "/api/private/comment-change", dataType: "text", data:myData, success: function (data, textStatus, jqXHR) { @@ -830,7 +830,7 @@ function addComment(sw,comment) }; $.ajax({ type: "POST", - url: "/comment-add.pl", + url: "/api/private/comment-add", dataType: "text", data:myData, success: function (data, textStatus, jqXHR) { @@ -854,7 +854,7 @@ function updatePorts() now = "?now=" + nms.now; $.ajax({ type: "GET", - url: "/port-state.pl"+ now , + url: "/api/private/port-state"+ now , dataType: "text", success: function (data, textStatus, jqXHR) { var switchdata = JSON.parse(data); @@ -877,7 +877,7 @@ function updatePorts() }); $.ajax({ type: "GET", - url: "/switches.pl"+ now , + url: "/api/public/switches"+ now , dataType: "text", success: function (data, textStatus, jqXHR) { var switchdata = JSON.parse(data); @@ -896,7 +896,7 @@ function updatePorts() updateAjaxInfo(); $.ajax({ type: "GET", - url: "/port-state.pl" + now, + url: "/api/private/port-state" + now, dataType: "text", success: function (data, textStatus, jqXHR) { var switchdata = JSON.parse(data); |