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
@@ -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;