snipe-it/routes/web/accessories.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']
]);