From c40f13e2d79c2ed23502e3c49f9b1e8c7d23f1c2 Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Sat, 27 Apr 2019 01:58:21 +0300 Subject: url refactoring --- web/share/js/kvm/msd.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'web/share/js/kvm/msd.js') diff --git a/web/share/js/kvm/msd.js b/web/share/js/kvm/msd.js index 09dfd7bf..d8059cab 100644 --- a/web/share/js/kvm/msd.js +++ b/web/share/js/kvm/msd.js @@ -57,7 +57,7 @@ function Msd() { form_data.append("image_data", __image_file); __upload_http = new XMLHttpRequest(); - __upload_http.open("POST", "/kvmd/msd/write", true); + __upload_http.open("POST", "/api/msd/write", true); __upload_http.upload.timeout = 5000; __upload_http.onreadystatechange = __uploadStateChange; __upload_http.upload.onprogress = __uploadProgress; @@ -74,7 +74,7 @@ function Msd() { }; var __clickSwitchButton = function(to) { - let http = tools.makeRequest("POST", "/kvmd/msd/connect?to=" + to, function() { + let http = tools.makeRequest("POST", "/api/msd/connect?to=" + to, function() { if (http.readyState === 4) { if (http.status !== 200) { wm.error("Switch error:
", http.responseText); @@ -101,7 +101,7 @@ function Msd() { var __clickResetButton = function() { wm.confirm("Are you sure you want to reset Mass Storage Device?").then(function(ok) { if (ok) { - let http = tools.makeRequest("POST", "/kvmd/msd/reset", function() { + let http = tools.makeRequest("POST", "/api/msd/reset", function() { if (http.readyState === 4) { if (http.status !== 200) { wm.error("MSD reset error:
", http.responseText); -- cgit v1.2.3