diff --git a/routes/api.php b/routes/api.php index 9ad3ae2c13..c462e27ca4 100644 --- a/routes/api.php +++ b/routes/api.php @@ -532,7 +532,9 @@ Route::group(['prefix' => 'v1', 'middleware' => ['api', 'throttle:api']], functi }); - // pulling this out of resource route group to begin normalizing + // pulling this out of resource route group to begin normalizing for route-model binding. + // 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::resource('hardware',