mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
22 lines
748 B
PHP
22 lines
748 B
PHP
<?php
|
|
|
|
use App\Http\Controllers\Consumables;
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
// Consumables
|
|
Route::group(['prefix' => 'consumables', 'middleware' => ['auth']], function () {
|
|
Route::get(
|
|
'{consumableID}/checkout',
|
|
['as' => 'checkout/consumable', 'uses' => [Consumables\ConsumableCheckoutController::class, 'create']]
|
|
);
|
|
Route::post(
|
|
'{consumableID}/checkout',
|
|
['as' => 'checkout/consumable', 'uses' => [Consumables\ConsumableCheckoutController::class, 'store']]
|
|
);
|
|
});
|
|
|
|
Route::resource('consumables', Consumables\ConsumablesController::class, [
|
|
'middleware' => ['auth'],
|
|
'parameters' => ['consumable' => 'consumable_id'],
|
|
]);
|