A free open source IT asset/license management system
Use a less stupid URL for this endpoint
snipefb2fe61daff0
diff --git a/routes/api.php b/routes/api.phpindex 1a0a80642a..efeffc6505 100644--- a/routes/api.php+++ b/routes/api.php@@ -280,13 +280,22 @@ Route::group(['prefix' => 'v1', 'middleware' => ['api', 'throttle:api']], functi])->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,