2016-12-15 04:12:18 -08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
# Consumables
|
2017-03-11 05:16:56 -08:00
|
|
|
Route::group([ 'prefix' => 'consumables', 'middleware' => ['auth']], function () {
|
2016-12-15 04:12:18 -08:00
|
|
|
Route::get(
|
|
|
|
'{consumableID}/checkout',
|
2018-07-24 19:35:26 -07:00
|
|
|
[ 'as' => 'checkout/consumable','uses' => 'Consumables\ConsumableCheckoutController@create' ]
|
2016-12-15 04:12:18 -08:00
|
|
|
);
|
|
|
|
Route::post(
|
|
|
|
'{consumableID}/checkout',
|
2018-07-24 19:35:26 -07:00
|
|
|
[ 'as' => 'checkout/consumable', 'uses' => 'Consumables\ConsumableCheckoutController@store' ]
|
2016-12-15 04:12:18 -08:00
|
|
|
);
|
|
|
|
});
|
|
|
|
|
2018-07-24 19:35:26 -07:00
|
|
|
Route::resource('consumables', 'Consumables\ConsumablesController', [
|
2017-03-11 05:16:56 -08:00
|
|
|
'middleware' => ['auth'],
|
2016-12-15 04:12:18 -08:00
|
|
|
'parameters' => ['consumable' => 'consumable_id']
|
|
|
|
]);
|