Updated routes

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-04-26 14:01:11 +01:00
parent 2439758ef3
commit 27bc7a847b

View file

@ -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,