From e26fa642ea9d50823eea09a252ec90852fd88f44 Mon Sep 17 00:00:00 2001 From: RundelhausCode Date: Mon, 22 Mar 2021 15:04:33 +0100 Subject: [PATCH] data fix --- Backend/Controllers/GameJam/GetGameJam.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Backend/Controllers/GameJam/GetGameJam.php b/Backend/Controllers/GameJam/GetGameJam.php index 1dd4d1b..d0e8cfe 100644 --- a/Backend/Controllers/GameJam/GetGameJam.php +++ b/Backend/Controllers/GameJam/GetGameJam.php @@ -12,6 +12,8 @@ if(isset($_GET['gameJamId'])){ 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 $dbValue->toJson(JSON_PRETTY_PRINT); + + +echo json_encode(array('data' => $dbValue->jsonSerialize())); //var_dump(headers_list()); \ No newline at end of file