diff options
author | Kristian Lyngstol <kly@kly@.no> | 2016-03-22 13:18:52 +0100 |
---|---|---|
committer | Kristian Lyngstol <kly@kly@.no> | 2016-03-22 13:18:52 +0100 |
commit | e3a11ccb7f67d036c1556f51efc509ee8038ca8a (patch) | |
tree | df5786c1577e89510da5f06bdf4b0b2003c2bd7f /web/nms.gathering.org/js/nms-info-box.js | |
parent | a8f122dfef27846895805df4db0fd1efb2f715ee (diff) |
NMS: Implement read/write separation in frontend
Diffstat (limited to 'web/nms.gathering.org/js/nms-info-box.js')
-rw-r--r-- | web/nms.gathering.org/js/nms-info-box.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/nms.gathering.org/js/nms-info-box.js b/web/nms.gathering.org/js/nms-info-box.js index b6b9d7e..b360beb 100644 --- a/web/nms.gathering.org/js/nms-info-box.js +++ b/web/nms.gathering.org/js/nms-info-box.js @@ -129,7 +129,7 @@ nmsInfoBox._windowTypes.addSwitch = { var myData = JSON.stringify([{'sysname':sysname}]); $.ajax({ type: "POST", - url: "/api/private/switch-add", + url: "/api/write/switch-add", dataType: "text", data:myData, success: function (data, textStatus, jqXHR) { @@ -301,7 +301,7 @@ nmsInfoBox._windowTypes.switchInfo = { console.log(myData); $.ajax({ type: "POST", - url: "/api/private/switch-update", + url: "/api/write/switch-update", dataType: "text", data:myData, success: function (data, textStatus, jqXHR) { |