diff --git a/routes/account.php b/routes/account.php index eb5b6301..c5541153 100644 --- a/routes/account.php +++ b/routes/account.php @@ -30,7 +30,7 @@ Route::group(['prefix' => 'account', 'namespace' => 'Accounts', 'as' => 'account Route::post('/verification/resend', 'ResendEmailVerificationController@resend')->name('verification.resend'); }); - Route::group(['prefix' => 'user', 'as' => 'user.'], function () { + Route::group(['middleware' => 'valid.token', 'prefix' => 'user', 'as' => 'user.'], function () { Route::post('/show', 'FetchUserController@fetch')->name('show'); Route::get('/list', 'ListUsersController@list')->name('list'); Route::put('/update/{id}', 'UpdateUserController@update')->name('update');