fixes component routes

This commit is contained in:
Godfrey M 2022-07-20 13:41:35 -07:00
parent 0c4c4fc352
commit 377c0e7075

View file

@ -236,7 +236,20 @@ Route::group(['prefix' => 'v1', 'middleware' => ['api', 'throttle:api']], functi
]
)->name('api.components.assets');
});
});
Route::post('components/{id}/checkin',
[
Api\ComponentsController::class,
'checkin'
]
)->name('api.components.checkin');
Route::post('components/{id}/checkout',
[
Api\ComponentsController::class,
'checkout'
]
)->name('api.components.checkout');
Route::resource('components',
@ -274,7 +287,7 @@ Route::group(['prefix' => 'v1', 'middleware' => ['api', 'throttle:api']], functi
]
)->name('api.consumables.showUsers');
Route::get('{consumable}/checkout',
Route::post('{consumable}/checkout',
[
Api\ConsumablesController::class,
'checkout'