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-10 13:17:14 -07:00
|
|
|
['as' => 'checkout/accessory', 'uses' => [Accessories\AccessoryCheckoutController::class, 'create']]
|
2016-12-15 04:12:18 -08:00
|
|
|
);
|
|
|
|
Route::post(
|
|
|
|
'{accessoryID}/checkout',
|
2021-06-10 13:17:14 -07:00
|
|
|
['as' => 'checkout/accessory', 'uses' => [Accessories\AccessoryCheckoutController::class, 'store']]
|
2016-12-15 04:12:18 -08:00
|
|
|
);
|
|
|
|
|
|
|
|
Route::get(
|
|
|
|
'{accessoryID}/checkin/{backto?}',
|
2021-06-10 13:17:14 -07:00
|
|
|
['as' => 'checkin/accessory', 'uses' => [Accessories\AccessoryCheckinController::class, 'create']]
|
2016-12-15 04:12:18 -08:00
|
|
|
);
|
|
|
|
Route::post(
|
|
|
|
'{accessoryID}/checkin/{backto?}',
|
2021-06-10 13:17:14 -07:00
|
|
|
['as' => 'checkin/accessory', 'uses' => [Accessories\AccessoryCheckinController::class, 'store']]
|
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
|
|
|
]);
|