mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Updated routes
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
2439758ef3
commit
27bc7a847b
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue