Fixes duplicate API endpoint that returns fieldsets instead of customfields

This commit is contained in:
Ivan Nieto Vivanco 2022-01-15 03:46:28 -06:00
parent b9cc0c9d4c
commit d5f6f6cafe

View file

@ -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