Added bulk delete routes

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-02-20 16:42:14 +00:00
parent b2c8fbf349
commit bc8db3deab

View file

@ -54,7 +54,18 @@ Route::group(['middleware' => 'auth'], function () {
*/
Route::group(['prefix' => 'locations', 'middleware' => ['auth']], function () {
Route::post(
'bulkdelete',
[LocationsController::class, 'postBulkDelete']
)->name('locations.bulkdelete.show');
Route::post(
'bulkedit',
[LocationsController::class, 'postBulkDeleteStore']
)->name('locations.bulkdelete.store');
Route::get('{locationId}/clone',
[LocationsController::class, 'getClone']
)->name('clone/location');
@ -68,6 +79,7 @@ Route::group(['middleware' => 'auth'], function () {
'{locationId}/printallassigned',
[LocationsController::class, 'print_all_assigned']
)->name('locations.print_all_assigned');
});
Route::resource('locations', LocationsController::class, [