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',
|
2018-07-24 19:35:26 -07:00
|
|
|
[ 'as' => 'checkout/accessory', 'uses' => 'Accessories\AccessoryCheckoutController@create' ]
|
2016-12-15 04:12:18 -08:00
|
|
|
);
|
|
|
|
Route::post(
|
|
|
|
'{accessoryID}/checkout',
|
2018-07-24 19:35:26 -07:00
|
|
|
[ 'as' => 'checkout/accessory', 'uses' => 'Accessories\AccessoryCheckoutController@store' ]
|
2016-12-15 04:12:18 -08:00
|
|
|
);
|
|
|
|
|
|
|
|
Route::get(
|
|
|
|
'{accessoryID}/checkin/{backto?}',
|
2018-07-24 19:35:26 -07:00
|
|
|
[ 'as' => 'checkin/accessory', 'uses' => 'Accessories\AccessoryCheckinController@create' ]
|
2016-12-15 04:12:18 -08:00
|
|
|
);
|
|
|
|
Route::post(
|
|
|
|
'{accessoryID}/checkin/{backto?}',
|
2018-07-24 19:35:26 -07:00
|
|
|
[ 'as' => 'checkin/accessory', 'uses' => 'Accessories\AccessoryCheckinController@store' ]
|
2016-12-15 04:12:18 -08:00
|
|
|
);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
2018-07-24 19:35:26 -07:00
|
|
|
Route::resource('accessories', 'Accessories\AccessoriesController', [
|
2017-03-11 05:16:56 -08:00
|
|
|
'middleware' => ['auth'],
|
2016-12-15 04:12:18 -08:00
|
|
|
'parameters' => ['accessory' => 'accessory_id']
|
|
|
|
]);
|