Files
EasyAdmin8/app/admin/config/route.php
wolfcode efbf557cc0 fix(admin): ensure CheckAuth is enabled for route verification
Enable CheckAuth in the admin route configuration which was previously
commented out, ensuring that node permissions are validated as expected.
2024-07-19 21:14:28 +08:00

28 lines
840 B
PHP

<?php
use app\admin\middleware\CheckInstall;
use app\admin\middleware\CheckLogin;
use app\admin\middleware\CheckAuth;
use app\admin\middleware\SystemLog;
// 你可以在这里继续写你需要的路由
// +----------------------------------------------------------------------
// | 这里只是路由的中间件
// | 至于为什么要把中间件配置写在这里呢??? Why???
// | 因为 ThinkPHP官方最新版本 已经不支持在中间件获取 controller 和 action 了
// +----------------------------------------------------------------------
return [
'middleware' => [
// 判断是否已经安装后台系统
CheckInstall::class,
// 检测是否登录
CheckLogin::class,
// 操作日志
SystemLog::class,
// 验证节点权限
CheckAuth::class,
],
];