mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-14 09:34:10 -08:00
20 lines
611 B
PHP
20 lines
611 B
PHP
<?php
|
|
|
|
|
|
# Consumables
|
|
Route::group([ 'prefix' => 'consumables', 'middleware' => ['auth']], function () {
|
|
Route::get(
|
|
'{consumableID}/checkout',
|
|
[ 'as' => 'checkout/consumable','uses' => 'ConsumablesController@getCheckout' ]
|
|
);
|
|
Route::post(
|
|
'{consumableID}/checkout',
|
|
[ 'as' => 'checkout/consumable', 'uses' => 'ConsumablesController@postCheckout' ]
|
|
);
|
|
});
|
|
|
|
Route::resource('consumables', 'ConsumablesController', [
|
|
'middleware' => ['auth'],
|
|
'parameters' => ['consumable' => 'consumable_id']
|
|
]);
|