From a9d31ed183021c98dbca8bfce438238a416977a4 Mon Sep 17 00:00:00 2001 From: milo <315045773@qq.com> Date: Fri, 16 Sep 2022 12:04:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E-=E6=BC=8F=E6=8E=89=E7=9A=84?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 public/index.php diff --git a/public/index.php b/public/index.php new file mode 100644 index 0000000..8422690 --- /dev/null +++ b/public/index.php @@ -0,0 +1,24 @@ + +// +---------------------------------------------------------------------- + +// [ 应用入口文件 ] +namespace think; + +header("Access-Control-Allow-Origin:*"); +header('Access-Control-Allow-Methods:POST'); +header('Access-Control-Allow-Headers:x-requested-with, content-type'); +require dirname(__DIR__) . '/vendor/autoload.php'; + +// 执行HTTP应用并响应 +$http = (new App())->http; +$response = $http->run(); +$response->send(); +$http->end($response); \ No newline at end of file