sonarr-repo-only/UI/Commands/CommandController.js

11 lines
276 B
JavaScript
Raw Normal View History

2013-05-11 23:39:32 +00:00
"use strict";
define(['app'], function () {
NzbDrone.Commands.Execute = function (name) {
return $.ajax({
type: 'POST',
url : NzbDrone.Constants.ApiRoot + '/command',
data: JSON.stringify({command: name})
});
};
});