mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 22:37:28 -08:00
Fixes duplicate API endpoint that returns fieldsets instead of customfields
This commit is contained in:
parent
b9cc0c9d4c
commit
d5f6f6cafe
|
@ -368,18 +368,18 @@ Route::group(['prefix' => 'v1', 'middleware' => 'api'], function () {
|
|||
|
||||
});
|
||||
|
||||
Route::resource('fields',
|
||||
Route::resource('fieldsets',
|
||||
Api\CustomFieldsetsController::class,
|
||||
['names' =>
|
||||
[
|
||||
'index' => 'api.customfields.index',
|
||||
'show' => 'api.customfields.show',
|
||||
'update' => 'api.customfields.update',
|
||||
'store' => 'api.customfields.store',
|
||||
'destroy' => 'api.customfields.destroy',
|
||||
'index' => 'api.fieldsets.index',
|
||||
'show' => 'api.fieldsets.show',
|
||||
'update' => 'api.fieldsets.update',
|
||||
'store' => 'api.fieldsets.store',
|
||||
'destroy' => 'api.fieldsets.destroy',
|
||||
],
|
||||
'except' => ['create', 'edit'],
|
||||
'parameters' => ['field' => 'field_id'],
|
||||
'parameters' => ['fieldset' => 'fieldset_id'],
|
||||
]
|
||||
); // end custom fieldsets API routes
|
||||
|
||||
|
|
Loading…
Reference in a new issue