diff --git a/routes/api.php b/routes/api.php index 842e6210df..082651a7e9 100644 --- a/routes/api.php +++ b/routes/api.php @@ -496,13 +496,22 @@ Route::group(['prefix' => 'v1', 'middleware' => ['api', 'throttle:api']], functi )->name('api.assets.show.byserial') ->where('any', '.*'); - Route::get('audit/{audit}', + // Get assets that are due or overdue for audit + Route::get('audit/{status}', [ Api\AssetsController::class, 'index' ] )->name('api.asset.to-audit'); + // Get assets that are due or overdue for checkin + Route::get('checkins/{status}', + [ + Api\AssetsController::class, + 'index' + ] + )->name('api.asset.to-checkin'); + Route::post('audit', [ Api\AssetsController::class,