Merge pull request #15204 from snipe/fixes/405_on_api_asset_update

Fixed (temp) put route
This commit is contained in:
snipe 2024-08-01 12:28:23 +01:00 committed by GitHub
commit 24d948a3f6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,