mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
Merge pull request #11142 from snipe/fixes/11141_fixed_accessories_api_endpoint
Fixed #11141 - accessories endpoint missing from API
This commit is contained in:
commit
524ef8261b
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue