Switch to plural route name for API endpoint

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-04-26 15:46:58 +01:00
parent 2d112f227a
commit 9e44052709

View file

@ -496,7 +496,7 @@ Route::group(['prefix' => 'v1', 'middleware' => ['api', 'throttle:api']], functi
)->name('api.assets.show.byserial') )->name('api.assets.show.byserial')
->where('any', '.*'); ->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}', Route::get('audit/{status}',
[ [
Api\AssetsController::class, Api\AssetsController::class,
@ -504,8 +504,16 @@ Route::group(['prefix' => 'v1', 'middleware' => ['api', 'throttle:api']], functi
] ]
)->name('api.asset.to-audit'); )->name('api.asset.to-audit');
// Get assets that are due or overdue for checkin // Get assets that are due or overdue for audit
Route::get('checkins/{status}', 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, Api\AssetsController::class,
'index' 'index'