Fix up subuser controller to use better binding checks

This commit is contained in:
Dane Everitt 2021-08-07 11:15:44 -07:00
parent 74426a97f4
commit bc1db626e7
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
4 changed files with 10 additions and 31 deletions

View file

@ -106,9 +106,9 @@ Route::group([
Route::group(['prefix' => '/users'], function () {
Route::get('/', 'Servers\SubuserController@index');
Route::post('/', 'Servers\SubuserController@store');
Route::get('/{user}', 'Servers\SubuserController@view');
Route::post('/{user}', 'Servers\SubuserController@update');
Route::delete('/{user}', 'Servers\SubuserController@delete');
Route::get('/{subuser}', [Client\Servers\SubuserController::class, 'view']);
Route::post('/{subuser}', [Client\Servers\SubuserController::class, 'update']);
Route::delete('/{subuser}', [Client\Servers\SubuserController::class, 'delete']);
});
Route::group(['prefix' => '/backups'], function () {