group(function () { Route::get('auth/twitch', [TwitchController::class, 'redirect'])->name('login'); Route::get('auth/twitch/callback', [TwitchController::class, 'callback']); }); Route::middleware('auth')->group(function () { Route::get('/dashboard', [DashboardController::class, 'index']) ->name('dashboard'); Route::get('/channel/{channel}', [DashboardController::class, 'channel']) ->name('dashboard.channel'); Route::get('/viewer/{viewer}', [ViewerController::class, 'index']) ->name('viewer'); Route::post('logout', [TwitchController::class, 'logout']) ->name('logout'); });