2016-12-15 19:59:42 -08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
# Components
|
2017-03-11 05:16:56 -08:00
|
|
|
Route::group([ 'prefix' => 'components','middleware' => ['auth'] ], function () {
|
2016-12-15 19:59:42 -08:00
|
|
|
|
|
|
|
Route::get(
|
|
|
|
'{componentID}/checkout',
|
2018-07-24 19:35:26 -07:00
|
|
|
[ 'as' => 'checkout/component', 'uses' => 'Components\ComponentCheckoutController@create' ]
|
2016-12-15 19:59:42 -08:00
|
|
|
);
|
|
|
|
Route::post(
|
|
|
|
'{componentID}/checkout',
|
2018-07-24 19:35:26 -07:00
|
|
|
[ 'as' => 'checkout/component', 'uses' => 'Components\ComponentCheckoutController@store' ]
|
2016-12-15 19:59:42 -08:00
|
|
|
);
|
2017-11-08 06:06:05 -08:00
|
|
|
Route::get(
|
|
|
|
'{componentID}/checkin',
|
2018-07-24 19:35:26 -07:00
|
|
|
[ 'as' => 'checkin/component', 'uses' => 'Components\ComponentCheckinController@create' ]
|
2017-11-08 06:06:05 -08:00
|
|
|
);
|
|
|
|
Route::post(
|
|
|
|
'{componentID}/checkin',
|
2018-07-24 19:35:26 -07:00
|
|
|
[ 'as' => 'component.checkin.save', 'uses' => 'Components\ComponentCheckinController@store' ]
|
2017-11-08 06:06:05 -08:00
|
|
|
);
|
2016-12-15 19:59:42 -08:00
|
|
|
|
|
|
|
});
|
|
|
|
|
2018-07-24 19:35:26 -07:00
|
|
|
Route::resource('components', 'Components\ComponentsController', [
|
2017-03-11 05:16:56 -08:00
|
|
|
'middleware' => ['auth'],
|
2016-12-15 19:59:42 -08:00
|
|
|
'parameters' => ['component' => 'component_id']
|
|
|
|
]);
|