diff --git a/routes/account.php b/routes/account.php index 4fca7c43..116a962a 100644 --- a/routes/account.php +++ b/routes/account.php @@ -13,5 +13,9 @@ Route::group(['prefix' => 'account', 'namespace' => 'Accounts', 'as' => 'account Route::post('/attempt', 'UserAuthenticationController@authenticate')->name('attempt'); Route::post('/check_email', 'CheckEmailController@check')->name('email.check'); }); + + Route::group(['middleware' => 'valid.token'], function () { + Route::get('/logout', 'UserAuthenticationLogoutController@logout')->name('logout'); + }); }); });