mirror of
https://github.com/unraid/webgui.git
synced 2026-05-03 16:29:45 -05:00
refactor: web component server state to class
This commit is contained in:
@@ -7,6 +7,8 @@ require_once "$docroot/webGui/include/Helpers.php";
|
||||
extract(parse_plugin_cfg('dynamix',true));
|
||||
require_once "$docroot/plugins/dynamix.my.servers/include/state.php";
|
||||
|
||||
$serverState = new ServerState();
|
||||
|
||||
header('Content-type: application/json');
|
||||
|
||||
echo json_encode($serverState);
|
||||
echo $serverState->getServerStateJson();
|
||||
|
||||
Reference in New Issue
Block a user