Skip to content

Commit 28abb8d

Browse files
committed
Hotfix for 405 update asset
Signed-off-by: snipe <[email protected]>
1 parent fcea564 commit 28abb8d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

routes/api.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,8 @@
577577
// the model name to be the parameter - and i think it's a good differentiation in the code while we convert the others.
578578
Route::patch('/hardware/{asset}', [Api\AssetsController::class, 'update'])->name('api.assets.update');
579579

580+
Route::put('/hardware/{asset}', [Api\AssetsController::class, 'update'])->name('api.assets.put-update');
581+
580582
Route::resource('hardware',
581583
Api\AssetsController::class,
582584
['names' => [

0 commit comments

Comments
 (0)