Skip to content

Commit

Permalink
Use a less stupid URL for this endpoint
Browse files Browse the repository at this point in the history
Signed-off-by: snipe <[email protected]>
  • Loading branch information
snipe committed Aug 10, 2022
1 parent 0d9eccb commit fb2fe61
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion routes/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,13 +280,22 @@
]
)->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,
Expand Down

0 comments on commit fb2fe61

Please sign in to comment.