mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2024-12-05 05:19:21 +08:00
26 lines
902 B
PHP
26 lines
902 B
PHP
<?php
|
|
// +----------------------------------------------------------------------
|
|
// | ShopXO 国内领先企业级B2C免费开源电商系统
|
|
// +----------------------------------------------------------------------
|
|
// | Copyright (c) 2011~2099 http://shopxo.net All rights reserved.
|
|
// +----------------------------------------------------------------------
|
|
// | Licensed ( https://opensource.org/licenses/mit-license.php )
|
|
// +----------------------------------------------------------------------
|
|
// | Author: Devil
|
|
// +----------------------------------------------------------------------
|
|
|
|
// [ API入口文件 ]
|
|
namespace think;
|
|
|
|
// 加载基础文件
|
|
require __DIR__ . '/../vendor/autoload.php';
|
|
|
|
// 引入公共入口文件
|
|
require __DIR__.'/core.php';
|
|
|
|
// 执行HTTP应用并响应
|
|
$http = (new App())->http;
|
|
$response = $http->name('api')->run();
|
|
$response->send();
|
|
$http->end($response);
|
|
?>
|