Use a less stupid URL for this endpoint

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2022-08-10 15:03:26 -07:00
parent 0d9eccb7eb
commit fb2fe61daf

View file

@ -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,