mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 13:44:06 -08:00
Use route model binding on clone, removed unneeded route
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
466ab1e3c0
commit
b64b774bd5
|
@ -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']
|
||||||
|
|
Loading…
Reference in a new issue