mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 21:24:13 -08:00
Switch to plural route name for API endpoint
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
2d112f227a
commit
9e44052709
|
@ -496,7 +496,7 @@ Route::group(['prefix' => 'v1', 'middleware' => ['api', 'throttle:api']], functi
|
|||
)->name('api.assets.show.byserial')
|
||||
->where('any', '.*');
|
||||
|
||||
// Get assets that are due or overdue for audit
|
||||
// LEGACY URL - Get assets that are due or overdue for audit
|
||||
Route::get('audit/{status}',
|
||||
[
|
||||
Api\AssetsController::class,
|
||||
|
@ -504,8 +504,16 @@ Route::group(['prefix' => 'v1', 'middleware' => ['api', 'throttle:api']], functi
|
|||
]
|
||||
)->name('api.asset.to-audit');
|
||||
|
||||
// Get assets that are due or overdue for checkin
|
||||
Route::get('checkins/{status}',
|
||||
// Get assets that are due or overdue for audit
|
||||
Route::get('audits/{status}',
|
||||
[
|
||||
Api\AssetsController::class,
|
||||
'index'
|
||||
]
|
||||
)->name('api.assets.to-audit');
|
||||
|
||||
// Get assets that are due or overdue for checkin
|
||||
Route::get('checkins/{status}',
|
||||
[
|
||||
Api\AssetsController::class,
|
||||
'index'
|
||||
|
|
Loading…
Reference in a new issue