2025-03-12 12:18:06 +08:00
|
|
|
<?php
|
|
|
|
|
// +----------------------------------------------------------------------
|
|
|
|
|
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
|
|
|
|
|
// +----------------------------------------------------------------------
|
|
|
|
|
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
|
|
|
|
|
// +----------------------------------------------------------------------
|
|
|
|
|
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
|
|
|
|
// +----------------------------------------------------------------------
|
|
|
|
|
// | Author: liu21st <liu21st@gmail.com>
|
|
|
|
|
// +----------------------------------------------------------------------
|
|
|
|
|
|
2025-03-16 17:43:30 +08:00
|
|
|
use think\facade\Route;
|
|
|
|
|
|
2025-04-07 11:44:39 +08:00
|
|
|
// 允许跨域
|
|
|
|
|
header('Access-Control-Allow-Origin: *');
|
|
|
|
|
header('Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS, PATCH');
|
|
|
|
|
header('Access-Control-Allow-Headers: Authorization, Content-Type, If-Match, If-Modified-Since, If-None-Match, If-Unmodified-Since, X-Requested-With, X-Token, X-Api-Token');
|
|
|
|
|
header('Access-Control-Max-Age: 1728000');
|
|
|
|
|
header('Access-Control-Allow-Credentials: true');
|
|
|
|
|
|
2025-03-27 17:26:31 +08:00
|
|
|
// 加载Store模块路由配置
|
|
|
|
|
include __DIR__ . '/../application/api/config/route.php';
|
|
|
|
|
|
2025-03-16 17:43:30 +08:00
|
|
|
// 加载Common模块路由配置
|
|
|
|
|
include __DIR__ . '/../application/common/config/route.php';
|
2025-03-12 12:18:06 +08:00
|
|
|
|
2025-04-09 14:07:54 +08:00
|
|
|
// 加载Cunkebao模块路由配置
|
2025-04-09 10:35:28 +08:00
|
|
|
include __DIR__ . '/../application/cunkebao/config/route.php';
|
2025-03-17 11:47:42 +08:00
|
|
|
|
2025-03-25 18:36:35 +08:00
|
|
|
// 加载Store模块路由配置
|
|
|
|
|
include __DIR__ . '/../application/store/config/route.php';
|
|
|
|
|
|
2025-04-09 14:07:54 +08:00
|
|
|
// 加载Superadmin模块路由配置
|
|
|
|
|
include __DIR__ . '/../application/superadmin/config/route.php';
|
2025-04-02 10:19:03 +08:00
|
|
|
|
|
|
|
|
// 加载CozeAI模块路由配置
|
|
|
|
|
include __DIR__ . '/../application/cozeai/config/route.php';
|
|
|
|
|
|
2025-03-16 17:43:30 +08:00
|
|
|
return [];
|