Files
CKB-Interface/route/route.php
2026-03-24 10:39:16 +08:00

49 lines
2.0 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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>
// +----------------------------------------------------------------------
use think\facade\Route;
// 允许跨域
header('Access-Control-Allow-Origin: ' . (isset($_SERVER['HTTP_ORIGIN']) ? $_SERVER['HTTP_ORIGIN'] : '*'));
header('Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS, PATCH');
header('Access-Control-Allow-Headers: Cookie, 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');
// 加载API模块路由配置
include __DIR__ . '/../application/api/config/route.php';
// 加载Common模块路由配置
include __DIR__ . '/../application/common/config/route.php';
// 加载Cunkebao模块路由配置
include __DIR__ . '/../application/cunkebao/config/route.php';
// 加载Store_old模块路由配置V1旧版路径/v1/store_old/*
include __DIR__ . '/../application/store_old/config/route.php';
// 加载Store模块路由配置V2新版路径/v2/store/*
include __DIR__ . '/../application/store/config/route.php';
// 加载Superadmin模块路由配置
include __DIR__ . '/../application/superadmin/config/route.php';
// 加载CozeAI模块路由配置
include __DIR__ . '/../application/cozeai/config/route.php';
// 加载AI模块路由配置
include __DIR__ . '/../application/ai/config/route.php';
// 加载存客宝模块路由配置
include __DIR__ . '/../application/chukebao/config/route.php';
return [];