Sonarr/UI/ServerStatus.js

8 lines
158 B
JavaScript

var statusText = $.ajax({
type : 'GET',
url : '/api/system/status',
async: false
}).responseText;
window.ServerStatus = JSON.parse(statusText);