Use route model binding on clone, removed unneeded route

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-07-24 17:49:21 +01:00
parent 466ab1e3c0
commit b64b774bd5

View file

@ -78,17 +78,14 @@ Route::group(
[AssetsController::class, 'getAssetBySerial'] [AssetsController::class, 'getAssetBySerial']
)->where('any', '.*')->name('findbyserial/hardware'); )->where('any', '.*')->name('findbyserial/hardware');
Route::get('{assetId}/clone', Route::get('{asset}/clone',
[AssetsController::class, 'getClone'] [AssetsController::class, 'getClone']
)->name('clone/hardware'); )->name('clone/hardware')->withTrashed();
Route::get('{assetId}/label', Route::get('{assetId}/label',
[AssetsController::class, 'getLabel'] [AssetsController::class, 'getLabel']
)->name('label/hardware'); )->name('label/hardware');
Route::post('{assetId}/clone',
[AssetsController::class, 'postCreate']
);
Route::get('{assetId}/checkout', Route::get('{assetId}/checkout',
[AssetCheckoutController::class, 'create'] [AssetCheckoutController::class, 'create']