Skip to content

Commit

Permalink
Renaming route parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
nWidart committed Oct 12, 2017
1 parent 0b7071a commit df68e51
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Modules/User/Http/apiRoutes.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
Expand Down

0 comments on commit df68e51

Please sign in to comment.