From 4328413a15420d37cf67018475262b3d56d50c52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Thu, 18 Jan 2024 16:53:08 +0100 Subject: [PATCH] Fix route middleware for email preferences --- routes/client.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/routes/client.php b/routes/client.php index 95956d4e5df4..eff978f740b0 100644 --- a/routes/client.php +++ b/routes/client.php @@ -161,6 +161,6 @@ Route::fallback(function () { })->middleware('throttle:404'); - -Route::get('client/email_preferences/{clientContact}', [EmailPreferencesController::class, 'index'])->name('client.email_preferences'); -Route::put('client/email_preferences/{clientContact}', [EmailPreferencesController::class, 'update']); +// Fix me: Move into invite_db middleware group. +Route::get('client/email_preferences/{clientContact}/{invitation_key}', [EmailPreferencesController::class, 'index'])->name('client.email_preferences'); +Route::put('client/email_preferences/{clientContact}/{invitation_key}', [EmailPreferencesController::class, 'update']);