Added model selectlist route

This commit is contained in:
snipe 2017-10-26 21:51:09 -07:00
parent 6bcb55a129
commit 1174d37c20

View file

@ -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 ---*/