mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-30 07:59:50 -08:00
32 lines
861 B
PHP
32 lines
861 B
PHP
<?php
|
|
|
|
/*
|
|
* Accessories
|
|
*/
|
|
Route::group([ 'prefix' => 'accessories', 'middleware' => ['auth']], function () {
|
|
|
|
Route::get(
|
|
'{accessoryID}/checkout',
|
|
[ 'as' => 'checkout/accessory', 'uses' => 'AccessoriesController@getCheckout' ]
|
|
);
|
|
Route::post(
|
|
'{accessoryID}/checkout',
|
|
[ 'as' => 'checkout/accessory', 'uses' => 'AccessoriesController@postCheckout' ]
|
|
);
|
|
|
|
Route::get(
|
|
'{accessoryID}/checkin/{backto?}',
|
|
[ 'as' => 'checkin/accessory', 'uses' => 'AccessoriesController@getCheckin' ]
|
|
);
|
|
Route::post(
|
|
'{accessoryID}/checkin/{backto?}',
|
|
[ 'as' => 'checkin/accessory', 'uses' => 'AccessoriesController@postCheckin' ]
|
|
);
|
|
|
|
});
|
|
|
|
Route::resource('accessories', 'AccessoriesController', [
|
|
'middleware' => ['auth'],
|
|
'parameters' => ['accessory' => 'accessory_id']
|
|
]);
|