diff --git a/src/Controllers/AdminRoleController.php b/src/Controllers/AdminRoleController.php index b0931fb2..1418b614 100644 --- a/src/Controllers/AdminRoleController.php +++ b/src/Controllers/AdminRoleController.php @@ -69,7 +69,7 @@ protected function setPermission() ->closeOnEsc() ->body([ amis()->Form() - ->api(admin_url('system/admin_role_save_permissions')) + ->api(admin_url('system/admin_roles/save_permissions')) ->initApi($this->getEditGetDataPath()) ->mode('normal') ->data(['id' => '${id}']) diff --git a/src/Support/Cores/Route.php b/src/Support/Cores/Route.php index cfc8ef10..68fd14b6 100644 --- a/src/Support/Cores/Route.php +++ b/src/Support/Cores/Route.php @@ -74,7 +74,7 @@ private static function baseRoutes($prefix) $router->resource('admin_roles', AdminRoleController::class); $router->resource('admin_permissions', AdminPermissionController::class); - $router->post('admin_role_save_permissions', [AdminRoleController::class, 'savePermissions']); + $router->post('admin_roles/save_permissions', [AdminRoleController::class, 'savePermissions']); $router->post('_admin_permissions_auto_generate', [AdminPermissionController::class, 'autoGenerate']); });