mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-27 06:29:47 -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']
|
|
]);
|