Frontend update
This commit is contained in:
@@ -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);
|
||||
Reference in New Issue
Block a user