mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -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')
|
)->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'
|
||||||
|
|
Loading…
Reference in a new issue