aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristian Lyngstol <kly@kly.no>2019-02-11 22:24:46 +0100
committerKristian Lyngstol <kly@kly.no>2019-02-11 22:24:46 +0100
commitb37496aa469bcb831576ea45a19bc065c37db284 (patch)
treeb9656d2fc885c919f49f733b0f70ca90e0742797
parent27929d995bad0b9123aec4773a3801587a2f671d (diff)
front: Update switch-moving to use correct API
-rw-r--r--web/js/nms-map.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/js/nms-map.js b/web/js/nms-map.js
index 179d8e5..d5bc044 100644
--- a/web/js/nms-map.js
+++ b/web/js/nms-map.js
@@ -565,7 +565,7 @@ nmsMap._moveSubmit = function() {
var myData = JSON.stringify([data]);
$.ajax({
type: "POST",
- url: "/api/write/switch-update",
+ url: "/api/write/switches",
dataType: "text",
data:myData,
success: function (data, textStatus, jqXHR) {