Merge remote-tracking branch 'origin/main' into main
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,6 @@ if(isset($_GET['gameJamId'])){
|
||||
$dbValue = GameJam::all();
|
||||
}
|
||||
|
||||
header("Access-Control-Allow-Methods: GET");
|
||||
header("Access-Control-Allow-Headers: X-Requested-With, Content-Type, Accept");
|
||||
header('Content-Type: application/json;charset=UTF-8');
|
||||
|
||||
echo json_encode(array('data' => $dbValue->jsonSerialize()));
|
||||
|
||||
+2
-2
@@ -4,5 +4,5 @@ use Backend\Models\AdminUser;
|
||||
|
||||
require_once ('Database/databaseMigration.php');
|
||||
AdminUser::firstOrCreate([
|
||||
'user_name' => 'admin', 'password' => password_hash('admin123',PASSWORD_DEFAULT)
|
||||
]);
|
||||
'user_name' => '', 'password' => password_hash('',PASSWORD_DEFAULT)
|
||||
]);
|
||||
Reference in New Issue
Block a user