Added API key authentication

This commit is contained in:
Mark McDowall 2013-09-20 00:31:02 -07:00
parent 689f27bee6
commit 57fdbe6e08
11 changed files with 114 additions and 15 deletions

View file

@ -1,10 +1,12 @@
window.NzbDrone = {};
window.NzbDrone.ApiRoot = '/api';
var statusText = $.ajax({
type : 'GET',
url : window.NzbDrone.ApiRoot + '/system/status',
async: false
async: false,
headers: {
ApiKey: window.NzbDrone.ApiKey
}
}).responseText;
window.NzbDrone.ServerStatus = JSON.parse(statusText);