A free open source IT asset/license management system
Fixed consumable user view route name
snipe754ec7563ad6
diff --git a/resources/views/consumables/view.blade.php b/resources/views/consumables/view.blade.phpindex 26265a3d74..80987335ff 100644--- a/resources/views/consumables/view.blade.php+++ b/resources/views/consumables/view.blade.php@@ -74,7 +74,7 @@data-sort-name="name"id="consumablesCheckedoutTable"class="table table-striped snipe-table"- data-url="{{route('api.consumables.showUsers', $consumable->id)}}"+ data-url="{{route('api.consumables.show.users', $consumable->id)}}"data-export-options='{"fileName": "export-consumables-{{ str_slug($consumable->name) }}-checkedout-{{ date('Y-m-d') }}","ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]diff --git a/routes/api.php b/routes/api.phpindex 4b8866dc2f..2ae1bfe559 100644--- a/routes/api.php+++ b/routes/api.php@@ -280,17 +280,9 @@ Route::group(['prefix' => 'v1', 'middleware' => ['api', 'throttle:api']], functiApi\ConsumablesController::class,'getDataView']- )->name('api.consumables.showUsers');+ )->name('api.consumables.show.users');- // This is LEGACY endpoint URL and should be removed in the next major release- Route::get('view/{id}/users',- [- Api\ConsumablesController::class,- 'getDataView'- ]- )->name('api.consumables.showUsers');-Route::post('{consumable}/checkout',[Api\ConsumablesController::class,