diff --git a/catch/permissions/route.php b/catch/permissions/route.php index a8bfc2e3..d8da5956 100644 --- a/catch/permissions/route.php +++ b/catch/permissions/route.php @@ -19,7 +19,8 @@ $router->resource('users', '\catchAdmin\permissions\controller\User'); // 切换状态 $router->put('users/switch/status/', '\catchAdmin\permissions\controller\User@switchStatus'); - $router->put('user/profile', '\catchAdmin\permissions\controller\User@profile'); $router->get('user/info', '\catchAdmin\permissions\controller\User@info'); $router->get('user/export', '\catchAdmin\permissions\controller\User@export'); -})->middleware('auth'); \ No newline at end of file +})->middleware('auth'); + +$router->put('user/profile', '\catchAdmin\permissions\controller\User@profile');// 修改自己的资料,无需鉴权