mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 06:17:28 -08:00
Use a less stupid URL for this endpoint
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
0d9eccb7eb
commit
fb2fe61daf
|
@ -280,13 +280,22 @@ Route::group(['prefix' => 'v1', 'middleware' => ['api', 'throttle:api']], functi
|
||||||
]
|
]
|
||||||
)->name('api.consumables.selectlist');
|
)->name('api.consumables.selectlist');
|
||||||
|
|
||||||
Route::get('view/{id}/users',
|
Route::get('{id}/users',
|
||||||
[
|
[
|
||||||
Api\ConsumablesController::class,
|
Api\ConsumablesController::class,
|
||||||
'getDataView'
|
'getDataView'
|
||||||
]
|
]
|
||||||
)->name('api.consumables.showUsers');
|
)->name('api.consumables.showUsers');
|
||||||
|
|
||||||
|
|
||||||
|
// This is LEGACY endpoint URL and should be removed in the next major release
|
||||||
|
Route::get('view/{id}/users',
|
||||||
|
[
|
||||||
|
Api\ConsumablesController::class,
|
||||||
|
'getDataView'
|
||||||
|
]
|
||||||
|
)->name('api.consumables.showUsers');
|
||||||
|
|
||||||
Route::post('{consumable}/checkout',
|
Route::post('{consumable}/checkout',
|
||||||
[
|
[
|
||||||
Api\ConsumablesController::class,
|
Api\ConsumablesController::class,
|
||||||
|
|
Loading…
Reference in a new issue