mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -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 ---*/
|
/*--- 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 () {
|
Route::group(['prefix' => 'statuslabels'], function () {
|
||||||
|
|
||||||
|
// Pie chart for dashboard
|
||||||
|
Route::get('assets',
|
||||||
|
[
|
||||||
|
'as' => 'api.statuslabels.assets.bytype',
|
||||||
|
'uses' => 'StatuslabelsController@getAssetCountByStatuslabel'
|
||||||
|
]
|
||||||
|
);
|
||||||
|
|
||||||
Route::get('{statuslabel}/assetlist',
|
Route::get('{statuslabel}/assetlist',
|
||||||
[
|
[
|
||||||
'as' => 'api.statuslabels.assets',
|
'as' => 'api.statuslabels.assets',
|
||||||
|
@ -397,14 +391,25 @@ Route::group(['prefix' => 'v1','namespace' => 'Api'], function () {
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
// Pie chart for dashboard
|
|
||||||
Route::get('assets',
|
});
|
||||||
|
|
||||||
|
Route::resource('statuslabels', 'StatuslabelsController',
|
||||||
[
|
[
|
||||||
'as' => 'api.statuslabels.assets.bytype',
|
'names' =>
|
||||||
'uses' => 'StatuslabelsController@getAssetCountByStatuslabel'
|
[
|
||||||
|
'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
|
|
||||||
|
// Status labels group
|
||||||
|
|
||||||
|
|
||||||
/*--- Suppliers API ---*/
|
/*--- Suppliers API ---*/
|
||||||
|
|
Loading…
Reference in a new issue