summaryrefslogtreecommitdiff
path: root/web/share/js/kvm/msd.js
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-04-27 01:58:21 +0300
committerDevaev Maxim <[email protected]>2019-04-27 01:58:21 +0300
commitc40f13e2d79c2ed23502e3c49f9b1e8c7d23f1c2 (patch)
tree0f0e006ebbb8eb0ea7b1e25dab82af908727096f /web/share/js/kvm/msd.js
parenta89612e5ac6ae03089500768bed9ef049ce75c4b (diff)
url refactoring
Diffstat (limited to 'web/share/js/kvm/msd.js')
-rw-r--r--web/share/js/kvm/msd.js6
1 files changed, 3 insertions, 3 deletions
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:<br>", 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:<br>", http.responseText);