From cbe26a365def89e5dd11df4d78537bda16bb0d4d Mon Sep 17 00:00:00 2001 From: snipe Date: Mon, 28 Jul 2025 23:31:14 +0100 Subject: [PATCH] Made route signature more consistent Signed-off-by: snipe --- routes/web/components.php | 2 +- routes/web/consumables.php | 2 +- routes/web/licenses.php | 2 +- routes/web/users.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/routes/web/components.php b/routes/web/components.php index 429573b8fb..44f4fe10e5 100644 --- a/routes/web/components.php +++ b/routes/web/components.php @@ -31,7 +31,7 @@ Route::group(['prefix' => 'components', 'middleware' => ['auth']], function () { )->name('upload/component'); Route::delete( - '{componentId}/deletefile/{fileId}', + '{componentId}/showfile/{fileId}/delete', [Components\ComponentsFilesController::class, 'destroy'] )->name('delete/componentfile'); diff --git a/routes/web/consumables.php b/routes/web/consumables.php index 8e6c94d863..5059c4bc5a 100644 --- a/routes/web/consumables.php +++ b/routes/web/consumables.php @@ -22,7 +22,7 @@ Route::group(['prefix' => 'consumables', 'middleware' => ['auth']], function () )->name('upload/consumable'); Route::delete( - '{consumableId}/deletefile/{fileId}', + '{consumableId}/showfile/{fileId}/delete', [Consumables\ConsumablesFilesController::class, 'destroy'] )->name('delete/consumablefile'); diff --git a/routes/web/licenses.php b/routes/web/licenses.php index 39762c95c5..6bffa58aa9 100644 --- a/routes/web/licenses.php +++ b/routes/web/licenses.php @@ -53,7 +53,7 @@ Route::group(['prefix' => 'licenses', 'middleware' => ['auth']], function () { )->name('upload/license'); Route::delete( - '{licenseId}/deletefile/{fileId}', + '{licenseId}/showfile/{fileId}/delete', [Licenses\LicenseFilesController::class, 'destroy'] )->name('delete/licensefile'); Route::get( diff --git a/routes/web/users.php b/routes/web/users.php index ced9c379a9..e0f44bfdbb 100644 --- a/routes/web/users.php +++ b/routes/web/users.php @@ -73,7 +73,7 @@ Route::group(['prefix' => 'users', 'middleware' => ['auth']], function () { )->name('upload/user')->withTrashed(); Route::delete( - '{userId}/deletefile/{fileId}', + '{userId}/showfile/{fileId}/delete', [ Users\UserFilesController::class, 'destroy'