mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 21:24:13 -08:00
Moved statuslabels API for route priority
This commit is contained in:
parent
9c637ba62c
commit
dcd8e800b1
|
@ -366,23 +366,17 @@ Route::group(['prefix' => 'v1','namespace' => 'Api'], function () {
|
|||
|
||||
/*--- Status Labels API ---*/
|
||||
|
||||
Route::resource('statuslabels', 'StatuslabelsController',
|
||||
[
|
||||
'names' =>
|
||||
[
|
||||
'index' => 'api.statuslabels.index',
|
||||
'store' => 'api.statuslabels.store',
|
||||
'show' => 'api.statuslabels.show',
|
||||
'update' => 'api.statuslabels.update',
|
||||
'destroy' => 'api.statuslabels.destroy'
|
||||
],
|
||||
'except' => ['create', 'edit'],
|
||||
'parameters' => ['statuslabel' => 'statuslabel_id']
|
||||
]
|
||||
);
|
||||
|
||||
Route::group(['prefix' => 'statuslabels'], function () {
|
||||
|
||||
// Pie chart for dashboard
|
||||
Route::get('assets',
|
||||
[
|
||||
'as' => 'api.statuslabels.assets.bytype',
|
||||
'uses' => 'StatuslabelsController@getAssetCountByStatuslabel'
|
||||
]
|
||||
);
|
||||
|
||||
Route::get('{statuslabel}/assetlist',
|
||||
[
|
||||
'as' => 'api.statuslabels.assets',
|
||||
|
@ -397,14 +391,25 @@ Route::group(['prefix' => 'v1','namespace' => 'Api'], function () {
|
|||
]
|
||||
);
|
||||
|
||||
// Pie chart for dashboard
|
||||
Route::get('assets',
|
||||
[
|
||||
'as' => 'api.statuslabels.assets.bytype',
|
||||
'uses' => 'StatuslabelsController@getAssetCountByStatuslabel'
|
||||
]
|
||||
);
|
||||
}); // Status labels group
|
||||
|
||||
});
|
||||
|
||||
Route::resource('statuslabels', 'StatuslabelsController',
|
||||
[
|
||||
'names' =>
|
||||
[
|
||||
'index' => 'api.statuslabels.index',
|
||||
'store' => 'api.statuslabels.store',
|
||||
'show' => 'api.statuslabels.show',
|
||||
'update' => 'api.statuslabels.update',
|
||||
'destroy' => 'api.statuslabels.destroy'
|
||||
],
|
||||
'except' => ['create', 'edit'],
|
||||
'parameters' => ['statuslabel' => 'statuslabel_id']
|
||||
]
|
||||
);
|
||||
|
||||
// Status labels group
|
||||
|
||||
|
||||
/*--- Suppliers API ---*/
|
||||
|
|
Loading…
Reference in a new issue