test_lgq/niucloud/app/api/middleware.php
2024-01-24 17:36:08 +08:00

11 lines
229 B
PHP

<?php
// 全局中间件定义文件
use app\api\middleware\AllowCrossDomain;
use think\middleware\LoadLangPack;
return [
//跨域请求中间件
AllowCrossDomain::class,
//语言中间件
LoadLangPack::class,
];