From b4d2b1322febc121940110219c12cfce71a4a6fb Mon Sep 17 00:00:00 2001 From: Ivan Nieto Vivanco Date: Mon, 7 Feb 2022 13:43:13 -0600 Subject: [PATCH] Pass ID of the checkin/checkout assets in API --- routes/api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/api.php b/routes/api.php index b3ec949c32..76e34811e6 100644 --- a/routes/api.php +++ b/routes/api.php @@ -460,7 +460,7 @@ Route::group(['prefix' => 'v1', 'middleware' => 'api'], function () { ] )->name('api.asset.audit'); - Route::post('checkin', + Route::post('{id}/checkin', [ Api\AssetsController::class, 'checkin' @@ -474,7 +474,7 @@ Route::group(['prefix' => 'v1', 'middleware' => 'api'], function () { ] )->name('api.asset.checkinbytag'); - Route::post('checkout', + Route::post('{id}/checkout', [ Api\AssetsController::class, 'checkout'