2016-12-15 04:12:18 -08:00
|
|
|
<?php
|
|
|
|
|
2021-06-10 13:15:52 -07:00
|
|
|
// Consumables
|
|
|
|
Route::group(['prefix' => 'consumables', 'middleware' => ['auth']], function () {
|
2016-12-15 04:12:18 -08:00
|
|
|
Route::get(
|
|
|
|
'{consumableID}/checkout',
|
2021-06-10 13:15:52 -07:00
|
|
|
['as' => 'checkout/consumable', 'uses' => 'Consumables\ConsumableCheckoutController@create']
|
2016-12-15 04:12:18 -08:00
|
|
|
);
|
|
|
|
Route::post(
|
|
|
|
'{consumableID}/checkout',
|
2021-06-10 13:15:52 -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'],
|
2021-06-10 13:15:52 -07:00
|
|
|
'parameters' => ['consumable' => 'consumable_id'],
|
2016-12-15 04:12:18 -08:00
|
|
|
]);
|