summaryrefslogtreecommitdiffstats
path: root/webapp/utils/client.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/utils/client.jsx')
-rw-r--r--webapp/utils/client.jsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/webapp/utils/client.jsx b/webapp/utils/client.jsx
index e29cf71d3..69bda4303 100644
--- a/webapp/utils/client.jsx
+++ b/webapp/utils/client.jsx
@@ -1031,12 +1031,13 @@ export function regenCommandToken(data, success, error) {
});
}
-export function listCommands(success, error) {
+export function listCommands(data, success, error) {
$.ajax({
url: '/api/v1/commands/list',
dataType: 'json',
contentType: 'application/json',
- type: 'GET',
+ type: 'POST',
+ data: JSON.stringify(data),
success,
error: function onError(xhr, status, err) {
var e = handleError('listCommands', xhr, status, err);