print data to website

This commit is contained in:
neerholt 2021-03-10 11:23:40 +01:00
parent 053bf845cf
commit 5bd15d9442
2 changed files with 10 additions and 0 deletions

View File

@ -46,5 +46,9 @@ if(isset($_SESSION['token'])){
$group->save();
}
}
}else{
header("location: ../../../Frontend/group.php?error=TooManyUploads");
}
}else{
header("location: ../../../Main.php?error=NoLogin");
}

View File

@ -1 +1,7 @@
<?php
require_once "../../../bootstrap.php";
use Backend\Models\GameJam;
$dbValue = GameJam::all()->toJson(JSON_PRETTY_PRINT);
header('Content-Type: application/json;charset=UTF-8');
echo $dbValue;