mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-27 14:39:49 -08:00
22 lines
924 B
PHP
22 lines
924 B
PHP
<?php
|
|
|
|
# Components
|
|
Route::group([ 'prefix' => 'components', 'middleware'=>'authorize:components.view' ], function () {
|
|
|
|
Route::get(
|
|
'{componentID}/checkout',
|
|
[ 'as' => 'checkout/component', 'middleware'=>'authorize:components.checkout','uses' => 'ComponentsController@getCheckout' ]
|
|
);
|
|
Route::post(
|
|
'{componentID}/checkout',
|
|
[ 'as' => 'checkout/component', 'middleware'=>'authorize:components.checkout','uses' => 'ComponentsController@postCheckout' ]
|
|
);
|
|
Route::post('bulk', [ 'as' => 'component/bulk-form', 'middleware'=>'authorize:components.checkout','uses' => 'ComponentsController@postBulk' ]);
|
|
Route::post('bulksave', [ 'as' => 'component/bulk-save', 'middleware'=>'authorize:components.edit','uses' => 'ComponentsController@postBulkSave' ]);
|
|
|
|
});
|
|
|
|
Route::resource('components', 'ComponentsController', [
|
|
'parameters' => ['component' => 'component_id']
|
|
]);
|