From c1c9c3554e678687420cb17f61c66eacd8315660 Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 1 Aug 2024 12:27:02 +0100 Subject: [PATCH] Fixed (temp) put route Signed-off-by: snipe --- routes/api.php | 1 + 1 file changed, 1 insertion(+) diff --git a/routes/api.php b/routes/api.php index 9fffd7566..5bcf418c5 100644 --- a/routes/api.php +++ b/routes/api.php @@ -576,6 +576,7 @@ Route::group(['prefix' => 'v1', 'middleware' => ['api', 'throttle:api']], functi // this would probably keep working with the resource route group, but the general practice is for // 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,