middleware(['api', 'auth:sanctum'])->group(function () { // Notifications Route::get('/notifications', [NotificationController::class, 'index']); Route::post('/notifications/{notification}/read', [NotificationController::class, 'markAsRead']); Route::post('/notifications/read-all', [NotificationController::class, 'markAllAsRead']); Route::delete('/notifications/{notification}', [NotificationController::class, 'destroy']); });