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/session.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'web/share/js/kvm/session.js') diff --git a/web/share/js/kvm/session.js b/web/share/js/kvm/session.js index adeb330e..b01fbe34 100644 --- a/web/share/js/kvm/session.js +++ b/web/share/js/kvm/session.js @@ -46,7 +46,7 @@ function Session() { let text = JSON.stringify(state.meta, undefined, 4).replace(/ /g, " ").replace(/\n/g, "
"); $("about-meta").innerHTML = ` // The Pi-KVM metadata.
- // You can get this json using handle /kvmd/info.
+ // You can get this json using handle /api/info.
// In the standard configuration this data
// is specified in the file /etc/kvmd/meta.yaml.


@@ -69,11 +69,11 @@ function Session() { $("link-led").className = "led-yellow"; $("link-led").title = "Connecting..."; - let http = tools.makeRequest("GET", "/kvmd/auth/check", function() { + let http = tools.makeRequest("GET", "/api/auth/check", function() { if (http.readyState === 4) { if (http.status === 200) { let proto = (location.protocol === "https:" ? "wss" : "ws"); - __ws = new WebSocket(`${proto}://${location.host}/kvmd/ws`); + __ws = new WebSocket(`${proto}://${location.host}/api/ws`); __ws.onopen = __wsOpenHandler; __ws.onmessage = __wsMessageHandler; __ws.onerror = __wsErrorHandler; -- cgit v1.2.3