mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Redirect /asset_tag/view to /asset_tag
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
ef10f2e50e
commit
d2bf71327b
|
@ -122,9 +122,9 @@ Route::group(
|
|||
[AssetCheckinController::class, 'store']
|
||||
)->name('hardware.checkin.store');
|
||||
|
||||
Route::get('{assetId}/view',
|
||||
[AssetsController::class, 'show']
|
||||
)->name('hardware.view');
|
||||
Route::get('{assetId}/view', function ($assetId) {
|
||||
return redirect()->route('hardware.show', ['hardware' => $assetId]);
|
||||
});
|
||||
|
||||
Route::get('{assetId}/qr_code',
|
||||
[AssetsController::class, 'getQrCode']
|
||||
|
@ -178,13 +178,17 @@ Route::group(
|
|||
Route::post('bulkcheckout',
|
||||
[BulkAssetsController::class, 'storeCheckout']
|
||||
)->name('hardware.bulkcheckout.store');
|
||||
|
||||
});
|
||||
|
||||
Route::resource('hardware',
|
||||
AssetsController::class,
|
||||
[
|
||||
'middleware' => ['auth'],
|
||||
'parameters' => ['asset' => 'asset_id'
|
||||
'parameters' => ['asset' => 'asset_id',
|
||||
'names' => [
|
||||
'show' => 'view',
|
||||
],
|
||||
],
|
||||
]);
|
||||
|
||||
|
|
Loading…
Reference in a new issue