Skip to content

Commit

Permalink
🔨 APP #270 correção exemplo
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinaldo Araujo Barreto Junior committed Jul 6, 2022
1 parent 4a125b9 commit 6b301f7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions appexemplo_v2.0/api/api_controllers/SysinfoAPI.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}

0 comments on commit 6b301f7

Please sign in to comment.