mirror of
https://github.com/Radarr/Radarr
synced 2024-12-28 10:51:48 +00:00
17 lines
No EOL
394 B
JavaScript
17 lines
No EOL
394 B
JavaScript
"use strict";
|
|
define(['app'], function () {
|
|
|
|
NzbDrone.Commands.Execute = function (name, properties) {
|
|
var data = { command: name };
|
|
|
|
if (!properties) {
|
|
$.extend(data, properties);
|
|
}
|
|
|
|
return $.ajax({
|
|
type: 'POST',
|
|
url : NzbDrone.Constants.ApiRoot + '/command',
|
|
data: JSON.stringify(data)
|
|
});
|
|
};
|
|
}); |