chore: 首次提交 - 关联 GitHub fnvtk/MBTI_wang
Made-with: Cursor
This commit is contained in:
BIN
api/public/fonts/AlimamaFangYuanTiVF.ttf
Normal file
BIN
api/public/fonts/AlimamaFangYuanTiVF.ttf
Normal file
Binary file not shown.
BIN
api/public/fonts/NotoSansCJKsc-Regular.otf
Normal file
BIN
api/public/fonts/NotoSansCJKsc-Regular.otf
Normal file
Binary file not shown.
BIN
api/public/fonts/NotoSerifCJKsc-Regular.otf
Normal file
BIN
api/public/fonts/NotoSerifCJKsc-Regular.otf
Normal file
Binary file not shown.
BIN
api/public/fonts/wqy-microhei.ttc
Normal file
BIN
api/public/fonts/wqy-microhei.ttc
Normal file
Binary file not shown.
25
api/public/index.php
Normal file
25
api/public/index.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
// [ 应用入口文件 ]
|
||||
namespace think;
|
||||
|
||||
////处理跨域预检请求
|
||||
if($_SERVER['REQUEST_METHOD'] == 'OPTIONS'){
|
||||
header("Access-Control-Allow-Origin: " . (isset($_SERVER['HTTP_ORIGIN']) ? $_SERVER['HTTP_ORIGIN'] : '*'));
|
||||
header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept, Authorization, Cookie");
|
||||
header('Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS, PATCH');
|
||||
header("Access-Control-Allow-Credentials: true");
|
||||
exit;
|
||||
}
|
||||
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
// 执行HTTP应用并响应
|
||||
$http = (new App())->http;
|
||||
|
||||
$response = $http->run();
|
||||
|
||||
$response->send();
|
||||
|
||||
$http->end($response);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user