2016-12-15 04:12:18 -08:00
|
|
|
<?php
|
|
|
|
|
2021-06-10 13:17:14 -07:00
|
|
|
use App\Http\Controllers\Accessories;
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
|
2016-12-15 04:12:18 -08:00
|
|
|
/*
|
|
|
|
* Accessories
|
|
|
|
*/
|
2021-06-10 13:15:52 -07:00
|
|
|
Route::group(['prefix' => 'accessories', 'middleware' => ['auth']], function () {
|
2016-12-15 04:12:18 -08:00
|
|
|
Route::get(
|
|
|
|
'{accessoryID}/checkout',
|
2021-06-12 01:05:20 -07:00
|
|
|
[Accessories\AccessoryCheckoutController::class, 'create']
|
|
|
|
)->name('checkout/accessory');
|
|
|
|
|
2016-12-15 04:12:18 -08:00
|
|
|
Route::post(
|
|
|
|
'{accessoryID}/checkout',
|
2021-06-12 01:05:20 -07:00
|
|
|
[Accessories\AccessoryCheckoutController::class, 'store']
|
|
|
|
)->name('checkout/accessory');
|
2016-12-15 04:12:18 -08:00
|
|
|
|
|
|
|
Route::get(
|
|
|
|
'{accessoryID}/checkin/{backto?}',
|
2021-06-12 01:05:20 -07:00
|
|
|
[Accessories\AccessoryCheckinController::class, 'create']
|
2021-09-24 04:11:58 -07:00
|
|
|
)->name('checkin/accessory');
|
2021-06-12 01:05:20 -07:00
|
|
|
|
2016-12-15 04:12:18 -08:00
|
|
|
Route::post(
|
|
|
|
'{accessoryID}/checkin/{backto?}',
|
2021-06-12 01:05:20 -07:00
|
|
|
[Accessories\AccessoryCheckinController::class, 'store']
|
2021-09-24 04:11:58 -07:00
|
|
|
)->name('checkin/accessory');
|
2021-06-12 01:05:20 -07:00
|
|
|
|
2016-12-15 04:12:18 -08:00
|
|
|
});
|
|
|
|
|
2021-06-10 13:17:14 -07:00
|
|
|
Route::resource('accessories', Accessories\AccessoriesController::class, [
|
2017-03-11 05:16:56 -08:00
|
|
|
'middleware' => ['auth'],
|
2021-06-10 13:15:52 -07:00
|
|
|
'parameters' => ['accessory' => 'accessory_id'],
|
2016-12-15 04:12:18 -08:00
|
|
|
]);
|