Skip to content

A free open source IT asset/license management system

Change restore route to POST instead of GET

Mike Roquemore6e9f24c08f88
diff --git a/routes/web/hardware.php b/routes/web/hardware.php
index 22c4f0f20c..2ef3978946 100644
--- a/routes/web/hardware.php
+++ b/routes/web/hardware.php
@@ -134,7 +134,7 @@ Route::group(
[AssetsController::class, 'getBarCode']
)->name('barcode/hardware');
- Route::get('{assetId}/restore',
+ Route::post('{assetId}/restore',
[AssetsController::class, 'getRestore']
)->name('restore/hardware');
@@ -181,4 +181,4 @@ Route::resource('hardware',
'middleware' => ['auth'],
'parameters' => ['asset' => 'asset_id'
],
-]);
+]);
\ No newline at end of file