diff --git a/appexemplo_v2.0/api/api_controllers/SysinfoAPI.class.php b/appexemplo_v2.0/api/api_controllers/SysinfoAPI.class.php index 82f7f633..537fe0c1 100644 --- a/appexemplo_v2.0/api/api_controllers/SysinfoAPI.class.php +++ b/appexemplo_v2.0/api/api_controllers/SysinfoAPI.class.php @@ -22,8 +22,9 @@ public static function info() //-------------------------------------------------------------------------------- public static function getInfo(Request $request, Response $response, array $args) { - $result = self::info(); - $response = $response->withJson($result); - return $response; + $msg = self::info(); + $msgJson = json_encode($msg); + $response->getBody()->write( $msgJson ); + return $response->withHeader('Content-Type', 'application/json'); } } \ No newline at end of file