Merge pull request #11142 from snipe/fixes/11141_fixed_accessories_api_endpoint

Fixed #11141 - accessories endpoint missing from API
This commit is contained in:
snipe 2022-05-18 01:06:29 -07:00 committed by GitHub
commit 524ef8261b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -87,23 +87,25 @@ Route::group(['prefix' => 'v1', 'middleware' => ['api', 'throttle:'.config('app.
]
)->name('api.accessories.selectlist');
Route::resource('accessories',
Api\AccessoriesController::class,
['names' =>
[
'index' => 'api.accessories.index',
'show' => 'api.accessories.show',
'update' => 'api.accessories.update',
'store' => 'api.accessories.store',
'destroy' => 'api.accessories.destroy',
],
'except' => ['create', 'edit'],
'parameters' => ['accessory' => 'accessory_id'],
]
);
}); // end accessories group
Route::resource('accessories',
Api\AccessoriesController::class,
['names' =>
[
'index' => 'api.accessories.index',
'show' => 'api.accessories.show',
'update' => 'api.accessories.update',
'store' => 'api.accessories.store',
'destroy' => 'api.accessories.destroy',
],
'except' => ['create', 'edit'],
'parameters' => ['accessory' => 'accessory_id'],
]
);
/**
* Categpries API routes