diff --git a/Modules/User/Http/apiRoutes.php b/Modules/User/Http/apiRoutes.php index 37619fbec..7cfcb7e0a 100644 --- a/Modules/User/Http/apiRoutes.php +++ b/Modules/User/Http/apiRoutes.php @@ -54,7 +54,7 @@ 'uses' => 'UserController@store', 'middleware' => 'token-can:user.users.create', ]); - $router->post('find/{role}', [ + $router->post('find/{user}', [ 'as' => 'api.user.user.find', 'uses' => 'UserController@find', 'middleware' => 'token-can:user.users.edit', @@ -64,12 +64,12 @@ 'uses' => 'UserController@findNew', 'middleware' => 'token-can:user.users.edit', ]); - $router->post('{role}/edit', [ + $router->post('{user}/edit', [ 'as' => 'api.user.user.update', 'uses' => 'UserController@update', 'middleware' => 'token-can:user.users.edit', ]); - $router->delete('{role}', [ + $router->delete('{user}', [ 'as' => 'api.user.user.destroy', 'uses' => 'UserController@destroy', 'middleware' => 'token-can:user.users.destroy',