diff options
author | Kristian Lyngstol <kly@kly.no> | 2016-03-04 17:47:56 +0000 |
---|---|---|
committer | Kristian Lyngstol <kly@kly.no> | 2016-03-04 17:47:56 +0000 |
commit | aafd5a80db7b5ee27d1c432a4db93da48fbecb8a (patch) | |
tree | 3235337d8488228ea54a5c9dd6a1b6b67474aaa2 /web/nms.gathering.org/js | |
parent | 289a855db874aefa4ae90f0029555ada4383fbbc (diff) |
nms: Rename API end points and separate public/private
Diffstat (limited to 'web/nms.gathering.org/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 d3c9681..ace6e31 100644 --- a/web/nms.gathering.org/js/nms.js +++ b/web/nms.gathering.org/js/nms.js @@ -757,7 +757,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); @@ -806,7 +806,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) { @@ -823,7 +823,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) { @@ -847,7 +847,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); @@ -870,7 +870,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); @@ -889,7 +889,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); |