Skip to content

A free open source IT asset/license management system

Made route signature more consistent

snipecbe26a365def
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'