Skip to content

Commit

Permalink
Hotfix for 405 update asset
Browse files Browse the repository at this point in the history
Signed-off-by: snipe <[email protected]>
  • Loading branch information
snipe committed Aug 1, 2024
1 parent fcea564 commit 28abb8d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions routes/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' => [
Expand Down

0 comments on commit 28abb8d

Please sign in to comment.