Changed custom fieldset API routes to resource routes for consistency
This commit is contained in:
parent
5abe72ce02
commit
ec09ea53db
1 changed files with 14 additions and 11 deletions
|
@ -175,18 +175,21 @@ Route::group(['prefix' => 'v1','namespace' => 'Api'], function () {
|
||||||
|
|
||||||
/*--- Fieldsets API ---*/
|
/*--- Fieldsets API ---*/
|
||||||
|
|
||||||
Route::group(['prefix' => 'fieldsets'], function () {
|
Route::resource('fieldsets', 'CustomFieldsetsController',
|
||||||
Route::get('',
|
|
||||||
[
|
|
||||||
'as' => 'api.customfieldset.index',
|
|
||||||
'uses' => 'CustomFieldsetsController@index'
|
|
||||||
]);
|
|
||||||
Route::get('{id}',
|
|
||||||
[
|
[
|
||||||
'as' => 'api.customfieldsets.show',
|
'names' =>
|
||||||
'uses' => 'CustomFieldsetsController@show'
|
[
|
||||||
]);
|
'index' => 'api.fieldsets.index',
|
||||||
}); // Fieldsets group
|
'show' => 'api.fieldsets.show',
|
||||||
|
'store' => 'api.fieldsets.store',
|
||||||
|
'update' => 'api.fieldsets.update',
|
||||||
|
'destroy' => 'api.fieldsets.destroy'
|
||||||
|
],
|
||||||
|
'except' => ['create', 'edit'],
|
||||||
|
'parameters' => ['fieldset' => 'fieldset_id']
|
||||||
|
]
|
||||||
|
); // Custom fieldset resource
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*--- Groups API ---*/
|
/*--- Groups API ---*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue