mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Fixed route ordering (FIFO)
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
f785c3e759
commit
8ea3acc943
|
@ -197,21 +197,6 @@ Route::group(['prefix' => 'v1','namespace' => 'Api', 'middleware' => 'auth:api']
|
|||
|
||||
/*--- Components API ---*/
|
||||
|
||||
Route::resource('components', 'ComponentsController',
|
||||
[
|
||||
'names' =>
|
||||
[
|
||||
'index' => 'api.components.index',
|
||||
'show' => 'api.components.show',
|
||||
'store' => 'api.components.store',
|
||||
'update' => 'api.components.update',
|
||||
'destroy' => 'api.components.destroy'
|
||||
],
|
||||
'except' => ['create', 'edit'],
|
||||
'parameters' => ['component' => 'component_id']
|
||||
]
|
||||
); // Components resource
|
||||
|
||||
Route::group(['prefix' => 'components'], function () {
|
||||
|
||||
Route::get('{component}/assets',
|
||||
|
@ -236,6 +221,24 @@ Route::group(['prefix' => 'v1','namespace' => 'Api', 'middleware' => 'auth:api']
|
|||
);
|
||||
|
||||
}); // Components group
|
||||
|
||||
|
||||
Route::resource('components', 'ComponentsController',
|
||||
[
|
||||
'names' =>
|
||||
[
|
||||
'index' => 'api.components.index',
|
||||
'show' => 'api.components.show',
|
||||
'store' => 'api.components.store',
|
||||
'update' => 'api.components.update',
|
||||
'destroy' => 'api.components.destroy'
|
||||
],
|
||||
'except' => ['create', 'edit'],
|
||||
'parameters' => ['component' => 'component_id']
|
||||
]
|
||||
); // Components resource
|
||||
|
||||
|
||||
|
||||
|
||||
/*--- Consumables API ---*/
|
||||
|
|
Loading…
Reference in a new issue