diff options
author | Maxim Devaev <[email protected]> | 2024-09-22 22:14:36 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2024-09-23 02:32:23 +0300 |
commit | 5ed368769c889628ebae896556e5c6401cbafdaf (patch) | |
tree | ecaa45df14240683a14308a158761b5ac3cc3139 /web/share/js/index/main.js | |
parent | 1217144ecd476e28cfe43d7454a5224aa7fe7b7a (diff) |
refactoring
Diffstat (limited to 'web/share/js/index/main.js')
-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 3a0afb45..38c848c7 100644 --- a/web/share/js/index/main.js +++ b/web/share/js/index/main.js @@ -51,7 +51,7 @@ function __setAppText() { } function __loadKvmdInfo() { - tools.httpGet("/api/info?fields=auth,meta,extras", function(http) { + tools.httpGet("/api/info", {"fields": "auth,meta,extras"}, function(http) { if (http.status === 200) { let info = JSON.parse(http.responseText).result; @@ -121,7 +121,7 @@ function __makeApp(id, path, icon, name) { } function __logout() { - tools.httpPost("/api/auth/logout", function(http) { + tools.httpPost("/api/auth/logout", null, function(http) { if (http.status === 200 || http.status === 401 || http.status === 403) { document.location.href = "/login"; } else { |