diff options
author | Devaev Maxim <[email protected]> | 2019-04-27 01:58:21 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2019-04-27 01:58:21 +0300 |
commit | c40f13e2d79c2ed23502e3c49f9b1e8c7d23f1c2 (patch) | |
tree | 0f0e006ebbb8eb0ea7b1e25dab82af908727096f /web/share/js/index | |
parent | a89612e5ac6ae03089500768bed9ef049ce75c4b (diff) |
url refactoring
Diffstat (limited to 'web/share/js/index')
-rw-r--r-- | web/share/js/index/main.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/share/js/index/main.js b/web/share/js/index/main.js index beb6fbd9..9b3780aa 100644 --- a/web/share/js/index/main.js +++ b/web/share/js/index/main.js @@ -45,7 +45,7 @@ function __setAppText() { } function __loadKvmdInfo() { - let http = tools.makeRequest("GET", "/kvmd/info", function() { + let http = tools.makeRequest("GET", "/api/info", function() { if (http.readyState === 4) { if (http.status === 200) { let info = JSON.parse(http.responseText).result; @@ -101,7 +101,7 @@ function __makeApp(id, path, icon, name) { } function __logout() { - let http = tools.makeRequest("POST", "/kvmd/auth/logout", function() { + let http = tools.makeRequest("POST", "/api/auth/logout", function() { if (http.readyState === 4) { if (http.status === 200 || http.status === 401 || http.status === 403) { document.location.href = "/login"; |