diff --git a/routes/web.php b/routes/web.php index f728cbd04..3d7f91dc9 100644 --- a/routes/web.php +++ b/routes/web.php @@ -20,6 +20,7 @@ use App\Http\Controllers\Settings\ProfileController as ProfileSettingsController; use App\Http\Controllers\SocialImageController; use App\Http\Controllers\SubscriptionController; +use App\Http\Middleware\Authenticate; use Illuminate\Support\Facades\Route; Route::feeds(); @@ -65,7 +66,7 @@ Route::get('user/{username?}', [ProfileController::class, 'show'])->name('profile'); // Notifications -Route::view('notifications', 'users.notifications')->name('notifications'); +Route::view('notifications', 'users.notifications')->name('notifications')->middleware(Authenticate::class); // Settings Route::get('settings', [ProfileSettingsController::class, 'edit'])->name('settings.profile');