Skip to content

Commit

Permalink
Merge pull request #15204 from snipe/fixes/405_on_api_asset_update
Browse files Browse the repository at this point in the history
Fixed (temp) put route
  • Loading branch information
snipe authored Aug 1, 2024
2 parents f44abd0 + c1c9c35 commit 24d948a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions routes/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,7 @@
// 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,
Expand Down

0 comments on commit 24d948a

Please sign in to comment.