mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-28 10:48:46 +00:00
11 lines
276 B
JavaScript
11 lines
276 B
JavaScript
|
"use strict";
|
||
|
define(['app'], function () {
|
||
|
|
||
|
NzbDrone.Commands.Execute = function (name) {
|
||
|
return $.ajax({
|
||
|
type: 'POST',
|
||
|
url : NzbDrone.Constants.ApiRoot + '/command',
|
||
|
data: JSON.stringify({command: name})
|
||
|
});
|
||
|
};
|
||
|
});
|