mirror of
https://github.com/Radarr/Radarr
synced 2024-12-27 10:19:41 +00:00
16 lines
388 B
JavaScript
16 lines
388 B
JavaScript
'use strict';
|
|
define({
|
|
Execute: function (name, properties) {
|
|
var data = { command: name };
|
|
|
|
if (properties) {
|
|
$.extend(data, properties);
|
|
}
|
|
|
|
return $.ajax({
|
|
type: 'POST',
|
|
url : window.ApiRoot + '/command',
|
|
data: JSON.stringify(data)
|
|
});
|
|
}
|
|
});
|