Merge remote-tracking branch 'origin/develop'

This commit is contained in:
snipe 2023-09-29 19:00:27 +01:00
commit c45ede2d17
2 changed files with 2 additions and 10 deletions

View file

@ -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"]

View file

@ -280,17 +280,9 @@ Route::group(['prefix' => 'v1', 'middleware' => ['api', 'throttle:api']], functi
Api\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,