nk-lihaink-cn/app/middleware.php

18 lines
468 B
PHP
Raw Normal View History

2021-01-30 20:59:12 +08:00
<?php
2021-07-26 17:41:59 +08:00
/**
* @copyright Copyright (c) 2021 勾股工作室
2021-11-24 17:17:29 +08:00
* @license https://opensource.org/licenses/Apache-2.0
2021-07-26 17:41:59 +08:00
* @link https://www.gougucms.com
*/
2021-01-30 20:59:12 +08:00
// 全局中间件定义文件
return [
// 全局请求缓存
// \think\middleware\CheckRequestCache::class,
// 多语言加载
// \think\middleware\LoadLangPack::class,
// Session初始化
2021-07-26 17:41:59 +08:00
'think\middleware\SessionInit',
2023-01-18 17:10:33 +08:00
// 跨域请求
2023-01-30 16:33:01 +08:00
// \think\middleware\AllowCrossDomain::class
2021-01-30 20:59:12 +08:00
];