mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
added command support to toolbar.
This commit is contained in:
11
UI/Commands/CommandController.js
Normal file
11
UI/Commands/CommandController.js
Normal file
@@ -0,0 +1,11 @@
|
||||
"use strict";
|
||||
define(['app'], function () {
|
||||
|
||||
NzbDrone.Commands.Execute = function (name) {
|
||||
return $.ajax({
|
||||
type: 'POST',
|
||||
url : NzbDrone.Constants.ApiRoot + '/command',
|
||||
data: JSON.stringify({command: name})
|
||||
});
|
||||
};
|
||||
});
|
Reference in New Issue
Block a user