1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00
Sonarr/UI/Commands/CommandController.js

17 lines
388 B
JavaScript
Raw Normal View History

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