From 6e9f24c08f883b235365095fdefe2b15dec4dc4b Mon Sep 17 00:00:00 2001 From: Mike Roquemore Date: Sat, 2 Jul 2022 11:07:26 -0500 Subject: [PATCH] Change restore route to POST instead of GET --- routes/web/hardware.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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