2016-12-15 04:12:18 -08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Accessories
|
|
|
|
*/
|
2017-03-11 05:16:56 -08:00
|
|
|
Route::group([ 'prefix' => 'accessories', 'middleware' => ['auth']], function () {
|
2016-12-15 04:12:18 -08:00
|
|
|
|
|
|
|
Route::get(
|
|
|
|
'{accessoryID}/checkout',
|
2016-12-19 11:04:28 -08:00
|
|
|
[ 'as' => 'checkout/accessory', 'uses' => 'AccessoriesController@getCheckout' ]
|
2016-12-15 04:12:18 -08:00
|
|
|
);
|
|
|
|
Route::post(
|
|
|
|
'{accessoryID}/checkout',
|
2016-12-19 11:04:28 -08:00
|
|
|
[ 'as' => 'checkout/accessory', 'uses' => 'AccessoriesController@postCheckout' ]
|
2016-12-15 04:12:18 -08:00
|
|
|
);
|
|
|
|
|
|
|
|
Route::get(
|
|
|
|
'{accessoryID}/checkin/{backto?}',
|
2016-12-19 11:04:28 -08:00
|
|
|
[ 'as' => 'checkin/accessory', 'uses' => 'AccessoriesController@getCheckin' ]
|
2016-12-15 04:12:18 -08:00
|
|
|
);
|
|
|
|
Route::post(
|
|
|
|
'{accessoryID}/checkin/{backto?}',
|
2016-12-19 11:04:28 -08:00
|
|
|
[ 'as' => 'checkin/accessory', 'uses' => 'AccessoriesController@postCheckin' ]
|
2016-12-15 04:12:18 -08:00
|
|
|
);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
Route::resource('accessories', 'AccessoriesController', [
|
2017-03-11 05:16:56 -08:00
|
|
|
'middleware' => ['auth'],
|
2016-12-15 04:12:18 -08:00
|
|
|
'parameters' => ['accessory' => 'accessory_id']
|
|
|
|
]);
|