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