From 28abb8d8cc269af554f562bac639124e3cf5bc3d Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 1 Aug 2024 12:30:35 +0100 Subject: [PATCH] Hotfix for 405 update asset Signed-off-by: snipe --- routes/api.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/routes/api.php b/routes/api.php index 9fffd756691f..1472d1d1dcc5 100644 --- a/routes/api.php +++ b/routes/api.php @@ -577,6 +577,8 @@ // the model name to be the parameter - and i think it's a good differentiation in the code while we convert the others. Route::patch('/hardware/{asset}', [Api\AssetsController::class, 'update'])->name('api.assets.update'); + Route::put('/hardware/{asset}', [Api\AssetsController::class, 'update'])->name('api.assets.put-update'); + Route::resource('hardware', Api\AssetsController::class, ['names' => [