refactor: web component server state to class

This commit is contained in:
Zack Spear
2023-11-09 16:40:31 -08:00
parent 419af0403d
commit 35354c6117
3 changed files with 177 additions and 104 deletions
@@ -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();