mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 22:19:41 -08:00
254e2f120b
Signed-off-by: snipe <snipe@snipe.net>
45 lines
1.3 KiB
PHP
45 lines
1.3 KiB
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('consumables.checkout.show');
|
|
|
|
Route::post(
|
|
'{consumablesID}/checkout',
|
|
[Consumables\ConsumableCheckoutController::class, 'store']
|
|
)->name('consumables.checkout.store');
|
|
|
|
Route::post(
|
|
'{consumableId}/upload',
|
|
[Consumables\ConsumablesFilesController::class, 'store']
|
|
)->name('upload/consumable');
|
|
|
|
Route::delete(
|
|
'{consumableId}/deletefile/{fileId}',
|
|
[Consumables\ConsumablesFilesController::class, 'destroy']
|
|
)->name('delete/consumablefile');
|
|
|
|
Route::get(
|
|
'{consumableId}/showfile/{fileId}/{download?}',
|
|
[Consumables\ConsumablesFilesController::class, 'show']
|
|
)->name('show.consumablefile');
|
|
|
|
Route::get('{consumable}/clone',
|
|
[Consumables\ConsumablesController::class, 'clone']
|
|
)->name('consumables.clone.create');
|
|
|
|
|
|
});
|
|
|
|
Route::resource('consumables', Consumables\ConsumablesController::class, [
|
|
'middleware' => ['auth'],
|
|
'parameters' => ['consumable' => 'consumable_id'],
|
|
]);
|