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',
|
2016-12-19 11:04:28 -08:00
|
|
|
[ 'as' => 'checkout/component', 'uses' => 'ComponentsController@getCheckout' ]
|
2016-12-15 19:59:42 -08:00
|
|
|
);
|
|
|
|
Route::post(
|
|
|
|
'{componentID}/checkout',
|
2016-12-19 11:04:28 -08:00
|
|
|
[ 'as' => 'checkout/component', 'uses' => 'ComponentsController@postCheckout' ]
|
2016-12-15 19:59:42 -08:00
|
|
|
);
|
2017-11-08 06:06:05 -08:00
|
|
|
Route::get(
|
|
|
|
'{componentID}/checkin',
|
|
|
|
[ 'as' => 'checkin/component', 'uses' => 'ComponentsController@getCheckin' ]
|
|
|
|
);
|
|
|
|
Route::post(
|
|
|
|
'{componentID}/checkin',
|
|
|
|
[ 'as' => 'component.checkin.save', 'uses' => 'ComponentsController@postCheckin' ]
|
|
|
|
);
|
2016-12-15 19:59:42 -08:00
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
Route::resource('components', 'ComponentsController', [
|
2017-03-11 05:16:56 -08:00
|
|
|
'middleware' => ['auth'],
|
2016-12-15 19:59:42 -08:00
|
|
|
'parameters' => ['component' => 'component_id']
|
|
|
|
]);
|