fixed some stuff in gamejam
This commit is contained in:
@@ -2,6 +2,12 @@
|
||||
require_once "../../../bootstrap.php";
|
||||
use Backend\Models\GameJam;
|
||||
|
||||
$dbValue = GameJam::all()->toJson(JSON_PRETTY_PRINT);
|
||||
|
||||
if(isset($_GET['gameJamId'])){
|
||||
$dbValue = GameJam::find($_GET['gameJamId']);
|
||||
}else{
|
||||
$dbValue = GameJam::all();
|
||||
}
|
||||
|
||||
header('Content-Type: application/json;charset=UTF-8');
|
||||
echo $dbValue;
|
||||
echo $dbValue->toJson(JSON_PRETTY_PRINT);
|
||||
Reference in New Issue
Block a user