mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 21:24:13 -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');
|
||||
|
||||
Route::get('view/{id}/users',
|
||||
Route::get('{id}/users',
|
||||
[
|
||||
Api\ConsumablesController::class,
|
||||
'getDataView'
|
||||
]
|
||||
)->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',
|
||||
[
|
||||
Api\ConsumablesController::class,
|
||||
|
|
Loading…
Reference in a new issue