mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-14 01:24:06 -08:00
29 lines
830 B
PHP
29 lines
830 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::get(
|
|
'{componentID}/checkin',
|
|
[ 'as' => 'checkin/component', 'uses' => 'ComponentsController@getCheckin' ]
|
|
);
|
|
Route::post(
|
|
'{componentID}/checkin',
|
|
[ 'as' => 'component.checkin.save', 'uses' => 'ComponentsController@postCheckin' ]
|
|
);
|
|
|
|
});
|
|
|
|
Route::resource('components', 'ComponentsController', [
|
|
'middleware' => ['auth'],
|
|
'parameters' => ['component' => 'component_id']
|
|
]);
|