get json update

This commit is contained in:
2021-03-22 15:27:08 +01:00
parent e26fa642ea
commit 4f4931f8dd
6 changed files with 5 additions and 6 deletions
@@ -17,4 +17,4 @@ if(isset($_GET['gameDataId'])){
header("Access-Control-Allow-Methods: GET");
header("Access-Control-Allow-Headers: X-Requested-With, Content-Type, Accept");
header('Content-Type: application/json;charset=UTF-8');
echo $openGameDataStream->toJson(JSON_PRETTY_PRINT);
echo json_encode(array('data' => $openGameDataStream->jsonSerialize()));