mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 06:17:28 -08:00
32 lines
1 KiB
PHP
32 lines
1 KiB
PHP
|
<?php
|
||
|
|
||
|
/*
|
||
|
* Accessories
|
||
|
*/
|
||
|
Route::group([ 'prefix' => 'accessories', 'middleware'=>'authorize:accessories.view' ], function () {
|
||
|
|
||
|
|
||
|
Route::get(
|
||
|
'{accessoryID}/checkout',
|
||
|
[ 'as' => 'checkout/accessory', 'middleware' => 'authorize:accessories.checkout','uses' => 'AccessoriesController@getCheckout' ]
|
||
|
);
|
||
|
Route::post(
|
||
|
'{accessoryID}/checkout',
|
||
|
[ 'as' => 'checkout/accessory', 'middleware' => 'authorize:accessories.checkout','uses' => 'AccessoriesController@postCheckout' ]
|
||
|
);
|
||
|
|
||
|
Route::get(
|
||
|
'{accessoryID}/checkin/{backto?}',
|
||
|
[ 'as' => 'checkin/accessory', 'middleware' => 'authorize:accessories.checkin','uses' => 'AccessoriesController@getCheckin' ]
|
||
|
);
|
||
|
Route::post(
|
||
|
'{accessoryID}/checkin/{backto?}',
|
||
|
[ 'as' => 'checkin/accessory', 'middleware' => 'authorize:accessories.checkin','uses' => 'AccessoriesController@postCheckin' ]
|
||
|
);
|
||
|
|
||
|
});
|
||
|
|
||
|
Route::resource('accessories', 'AccessoriesController', [
|
||
|
'parameters' => ['accessory' => 'accessory_id']
|
||
|
]);
|