cmbYouku_Api/app/middleware.php

12 lines
302 B
PHP
Raw Permalink Normal View History

2024-07-01 15:57:07 +08:00
<?php
// 全局中间件定义文件
return [
// 全局请求缓存
// \think\middleware\CheckRequestCache::class,
// 多语言加载
\think\middleware\LoadLangPack::class,
// Session初始化
\think\middleware\SessionInit::class,
\app\middleware\CorsMiddleware::class
];