nk-lihaink-cn/app/middleware.php
2023-01-19 02:36:01 +00:00

18 lines
466 B
PHP

<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/Apache-2.0
* @link https://www.gougucms.com
*/
// 全局中间件定义文件
return [
// 全局请求缓存
// \think\middleware\CheckRequestCache::class,
// 多语言加载
// \think\middleware\LoadLangPack::class,
// Session初始化
'think\middleware\SessionInit',
// 跨域请求
\think\middleware\AllowCrossDomain::class
];