mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Added model selectlist route
This commit is contained in:
parent
6bcb55a129
commit
1174d37c20
|
@ -413,6 +413,23 @@ Route::group(['prefix' => 'v1','namespace' => 'Api'], function () {
|
|||
|
||||
/*--- Models API ---*/
|
||||
|
||||
Route::group(['prefix' => 'models'], function () {
|
||||
|
||||
Route::get('assets',
|
||||
[
|
||||
'as' => 'api.models.assets',
|
||||
'uses'=> 'AssetModelsController@assets'
|
||||
]
|
||||
);
|
||||
Route::get('selectlist',
|
||||
[
|
||||
'as' => 'api.models.selectlist',
|
||||
'uses'=> 'AssetModelsController@selectlist'
|
||||
]
|
||||
);
|
||||
}); // Models group
|
||||
|
||||
|
||||
Route::resource('models', 'AssetModelsController',
|
||||
[
|
||||
'names' =>
|
||||
|
@ -428,15 +445,7 @@ Route::group(['prefix' => 'v1','namespace' => 'Api'], function () {
|
|||
]
|
||||
); // Models resource
|
||||
|
||||
Route::group(['prefix' => 'models'], function () {
|
||||
|
||||
Route::get('assets',
|
||||
[
|
||||
'as' => 'api.models.assets',
|
||||
'uses'=> 'AssetModelsController@assets'
|
||||
]
|
||||
);
|
||||
}); // Models group
|
||||
|
||||
|
||||
/*--- Settings API ---*/
|
||||
|
|
Loading…
Reference in a new issue