Frontend update

This commit is contained in:
Minik Gaarde Lambrecht
2021-03-19 13:38:13 +01:00
parent 815ec2d499
commit 4896022806
1288 changed files with 84810 additions and 45 deletions
+5 -3
View File
@@ -1,4 +1,9 @@
<?php
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Credentials: true");
header("Access-Control-Max-Age: 1000");
header("Access-Control-Allow-Headers: X-Requested-With, Content-Type, Origin, Cache-Control, Pragma, Authorization, Accept, Accept-Encoding");
header("Access-Control-Allow-Methods: PUT, POST, GET, OPTIONS, DELETE");
require_once (realpath(dirname(__FILE__) ."/../../../bootstrap.php"));
use Backend\Models\GameJam;
@@ -9,8 +14,5 @@ if(isset($_GET['gameJamId'])){
$dbValue = GameJam::all();
}
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Methods: GET");
header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept");
header('Content-Type: application/json;charset=UTF-8');
echo $dbValue->toJson(JSON_PRETTY_PRINT);