1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-05 02:22:31 +01:00
Radarr/UI/Commands/CommandController.js

17 lines
388 B
JavaScript
Raw Normal View History

2013-06-22 08:24:24 +02:00
'use strict';
define({
Execute: function (name, properties) {
var data = { command: name };
2013-05-12 01:39:32 +02:00
if (properties) {
$.extend(data, properties);
}
2013-06-13 04:55:11 +02:00
return $.ajax({
type: 'POST',
url : window.ApiRoot + '/command',
data: JSON.stringify(data)
});
2013-06-13 04:55:11 +02:00
}
});