mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-11-01 16:32:56 +01:00
769331d45d
single quotes
18 lines
395 B
JavaScript
18 lines
395 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)
|
|
});
|
|
};
|
|
});
|