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