diff --git a/src/routes.php b/src/routes.php index 558a876..3cf6c3a 100644 --- a/src/routes.php +++ b/src/routes.php @@ -76,7 +76,9 @@ $app->get('/server/{serverName}/status', function (Request $request, Response $r // create server object and pass info back to client as JSON data $server = new Server($serverDir); $serverData = [ - 'state' => $server->getState() ? 'Running' : 'Stopped', + 'name' => $server->getName(), + 'version' => $server->getVersion(), + 'state' => $server->getState() ? 'Running' : 'Stopped', ]; $response->getBody()->write(json_encode($serverData));