diff --git a/routes/api.php b/routes/api.php index 1a0a80642a0d..efeffc6505bf 100644 --- a/routes/api.php +++ b/routes/api.php @@ -280,13 +280,22 @@ ] )->name('api.consumables.selectlist'); - Route::get('view/{id}/users', + Route::get('{id}/users', [ Api\ConsumablesController::class, 'getDataView' ] )->name('api.consumables.showUsers'); + + // 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,