You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
581 B
18 lines
581 B
<?php
|
|
// 中间件配置
|
|
return [
|
|
// 别名或分组
|
|
'alias' => [
|
|
'admin_auth' => app\admin\middleware\Check::class,
|
|
'admin_log'=> app\admin\middleware\AdminLog::class,
|
|
|
|
'bs_auth' => app\home\middleware\AuthMiddleware::class,
|
|
'bs_repeat' => app\home\middleware\RepeatOperateMiddleware::class,
|
|
'bs_cors' => app\home\middleware\CorsMiddleware::class,
|
|
],
|
|
// 优先级设置,此数组中的中间件会按照数组中的顺序优先执行
|
|
'priority' => [
|
|
\think\middleware\AllowCrossDomain::class,
|
|
],
|
|
|
|
];
|
|
|