From 1a510f6ca80b73f8e9b1bbf4000029eb9d897301 Mon Sep 17 00:00:00 2001 From: Mark van Eijk Date: Fri, 6 Sep 2024 21:17:31 +0200 Subject: [PATCH] wip --- composer.json | 3 ++- routes/web.php | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 0a4a065..751a8b8 100644 --- a/composer.json +++ b/composer.json @@ -59,7 +59,8 @@ "sort-packages": true, "allow-plugins": { "pestphp/pest-plugin": true, - "phpstan/extension-installer": true + "phpstan/extension-installer": true, + "php-http/discovery": true } }, "extra": { diff --git a/routes/web.php b/routes/web.php index 6ed8b6b..efe5467 100644 --- a/routes/web.php +++ b/routes/web.php @@ -4,5 +4,5 @@ use Vormkracht10\FilamentMails\Controllers\MailDownloadController; use Vormkracht10\FilamentMails\Controllers\MailPreviewController; -Route::get('/mail-preview/{mail}', MailPreviewController::class)->name('mail.preview'); -Route::get('/mail-download/{attachment}', MailDownloadController::class)->name('mail.download'); +Route::get('mails/{mail}/preview', MailPreviewController::class)->name('mail.preview'); +Route::get('mails/{mail}/attachment/{attachment}/{filename}', MailDownloadController::class)->name('mail.attachment.download');