mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24: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']
|
||||
)->where('any', '.*')->name('findbyserial/hardware');
|
||||
|
||||
Route::get('{assetId}/clone',
|
||||
Route::get('{asset}/clone',
|
||||
[AssetsController::class, 'getClone']
|
||||
)->name('clone/hardware');
|
||||
)->name('clone/hardware')->withTrashed();
|
||||
|
||||
Route::get('{assetId}/label',
|
||||
[AssetsController::class, 'getLabel']
|
||||
)->name('label/hardware');
|
||||
|
||||
Route::post('{assetId}/clone',
|
||||
[AssetsController::class, 'postCreate']
|
||||
);
|
||||
|
||||
|
||||
Route::get('{assetId}/checkout',
|
||||
[AssetCheckoutController::class, 'create']
|
||||
|
|
Loading…
Reference in a new issue