new database
This commit is contained in:
@@ -4,13 +4,14 @@ 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"));
|
||||
require_once(realpath(dirname(__FILE__) . "/../../../bootstrap.php"));
|
||||
|
||||
use Backend\Models\GameJam;
|
||||
|
||||
|
||||
if(isset($_GET['gameJamId'])){
|
||||
$dbValue = GameJam::find($_GET['gameJamId']);
|
||||
}else{
|
||||
if (isset($_GET['gameJamId'])) {
|
||||
$dbValue = GameJam::find($_GET['gameJamId']);
|
||||
} else {
|
||||
$dbValue = GameJam::all();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user