1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-12 14:03:16 +01:00
Radarr/UI/Commands/CommandController.js
2013-06-23 21:37:55 -07:00

18 lines
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)
});
};
});