mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 22:19:41 -08:00
17fb56d3b9
Signed-off-by: snipe <snipe@snipe.net>
26 lines
654 B
PHP
26 lines
654 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/accessory');
|
|
|
|
Route::post(
|
|
'{consumablesID}/checkout',
|
|
[Consumables\ConsumableCheckoutController::class, 'store']
|
|
)->name('checkout/accessory');
|
|
|
|
|
|
});
|
|
|
|
Route::resource('consumables', Consumables\ConsumablesController::class, [
|
|
'middleware' => ['auth'],
|
|
'parameters' => ['consumable' => 'consumable_id'],
|
|
]);
|