A free open source IT asset/license management system
Remove duplicate PUT route for hardware assets
sniped8171eb0566f
diff --git a/routes/api.php b/routes/api.phpindex 988cedb645..5fc5c85a35 100644--- a/routes/api.php+++ b/routes/api.php@@ -583,9 +583,7 @@ Route::group(['prefix' => 'v1', 'middleware' => ['api', 'api-throttle:api']], fu// 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::put('/hardware/{asset}', [Api\AssetsController::class, 'update'])->name('api.assets.put-update');-+Route::resource('hardware',Api\AssetsController::class,['names' => [