mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-25 20:51:30 -08:00
25 lines
891 B
PHP
25 lines
891 B
PHP
<?php
|
|
|
|
|
|
# Consumables
|
|
Route::group([ 'prefix' => 'consumables', 'middleware'=>'authorize:consumables.view' ], function () {
|
|
|
|
|
|
Route::get(
|
|
'{consumableID}/view',
|
|
[ 'as' => 'view/consumable', 'middleware'=>'authorize:consumables.view','uses' => 'ConsumablesController@getView' ]
|
|
);
|
|
Route::get(
|
|
'{consumableID}/checkout',
|
|
[ 'as' => 'checkout/consumable', 'middleware'=>'authorize:consumables.checkout','uses' => 'ConsumablesController@getCheckout' ]
|
|
);
|
|
Route::post(
|
|
'{consumableID}/checkout',
|
|
[ 'as' => 'checkout/consumable', 'middleware'=>'authorize:consumables.checkout','uses' => 'ConsumablesController@postCheckout' ]
|
|
);
|
|
});
|
|
|
|
Route::resource('consumables', 'ConsumablesController', [
|
|
'parameters' => ['consumable' => 'consumable_id']
|
|
]);
|