1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-26 09:47:39 +00:00
Sonarr/UI/Commands/CommandController.js

16 lines
388 B
JavaScript

'use strict';
define({
Execute: function (name, properties) {
var data = { command: name };
if (properties) {
$.extend(data, properties);
}
return $.ajax({
type: 'POST',
url : window.ApiRoot + '/command',
data: JSON.stringify(data)
});
}
});