16 lines
501 B
PHP
Executable File
16 lines
501 B
PHP
Executable File
<?php
|
|
// 中间件配置
|
|
return [
|
|
// 别名或分组
|
|
'alias' => [
|
|
'auth' => app\middleware\Auth::class,
|
|
'csrf' => app\middleware\Csrf::class,
|
|
'jwt' => app\middleware\JWT::class,
|
|
'login' => app\middleware\Login::class,
|
|
'apiLogin' => app\middleware\ApiLogin::class,
|
|
'log' => app\middleware\Log::class,
|
|
],
|
|
// 优先级设置,此数组中的中间件会按照数组中的顺序优先执行
|
|
'priority' => [],
|
|
];
|