snipe-it/routes/web/consumables.php

20 lines
649 B
PHP
Raw Normal View History

<?php
# Consumables
Route::group([ 'prefix' => 'consumables', 'middleware' => ['auth']], function () {
Route::get(
'{consumableID}/checkout',
[ 'as' => 'checkout/consumable','uses' => 'Consumables\ConsumableCheckoutController@create' ]
);
Route::post(
'{consumableID}/checkout',
[ 'as' => 'checkout/consumable', 'uses' => 'Consumables\ConsumableCheckoutController@store' ]
);
});
Route::resource('consumables', 'Consumables\ConsumablesController', [
'middleware' => ['auth'],
'parameters' => ['consumable' => 'consumable_id']
]);