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/stream.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web/share/js/kvm/stream.js') diff --git a/web/share/js/kvm/stream.js b/web/share/js/kvm/stream.js index e34fc7dc..0a0de313 100644 --- a/web/share/js/kvm/stream.js +++ b/web/share/js/kvm/stream.js @@ -187,7 +187,7 @@ function Streamer() { var __clickResetButton = function() { wm.confirm("Are you sure you want to reset stream?").then(function (ok) { if (ok) { - let http = tools.makeRequest("POST", "/kvmd/streamer/reset", function() { + let http = tools.makeRequest("POST", "/api/streamer/reset", function() { if (http.readyState === 4) { if (http.status !== 200) { wm.error("Can't reset stream:
", http.responseText); @@ -199,7 +199,7 @@ function Streamer() { }; var __sendParam = function(name, value) { - let http = tools.makeRequest("POST", `/kvmd/streamer/set_params?${name}=${value}`, function() { + let http = tools.makeRequest("POST", `/api/streamer/set_params?${name}=${value}`, function() { if (http.readyState === 4) { if (http.status !== 200) { wm.error("Can't configure stream:
", http.responseText); -- cgit v1.2.3