mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
beb0836d69
Signed-off-by: snipe <snipe@snipe.net>
59 lines
1.7 KiB
PHP
59 lines
1.7 KiB
PHP
<?php
|
|
|
|
use App\Http\Controllers\Accessories;
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
/*
|
|
* Accessories
|
|
*/
|
|
Route::group(['prefix' => 'accessories', 'middleware' => ['auth']], function () {
|
|
Route::get(
|
|
'{accessoryID}/checkout',
|
|
[Accessories\AccessoryCheckoutController::class, 'create']
|
|
)->name('accessories.checkout.show');
|
|
|
|
Route::post(
|
|
'{accessory}/checkout',
|
|
[Accessories\AccessoryCheckoutController::class, 'store']
|
|
)->name('accessories.checkout.store');
|
|
|
|
Route::get(
|
|
'{accessoryID}/checkin/{backto?}',
|
|
[Accessories\AccessoryCheckinController::class, 'create']
|
|
)->name('accessories.checkin.show');
|
|
|
|
Route::post(
|
|
'{accessoryID}/checkin/{backto?}',
|
|
[Accessories\AccessoryCheckinController::class, 'store']
|
|
)->name('accessories.checkin.store');
|
|
|
|
Route::post(
|
|
'{accessoryId}/upload',
|
|
[Accessories\AccessoriesFilesController::class, 'store']
|
|
)->name('upload/accessory');
|
|
|
|
Route::delete(
|
|
'{accessoryId}/deletefile/{fileId}',
|
|
[Accessories\AccessoriesFilesController::class, 'destroy']
|
|
)->name('delete/accessoryfile');
|
|
|
|
Route::get(
|
|
'{accessoryId}/showfile/{fileId}/{download?}',
|
|
[Accessories\AccessoriesFilesController::class, 'show']
|
|
)->name('show.accessoryfile');
|
|
|
|
Route::get('{accessoryId}/clone',
|
|
[Accessories\AccessoriesController::class, 'getClone']
|
|
)->name('clone/accessories');
|
|
|
|
Route::post('{accessoryId}/clone',
|
|
[Accessories\AccessoriesController::class, 'postCreate']
|
|
);
|
|
|
|
});
|
|
|
|
Route::resource('accessories', Accessories\AccessoriesController::class, [
|
|
'middleware' => ['auth'],
|
|
'parameters' => ['accessory' => 'accessory_id'],
|
|
]);
|