mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 21:54:14 -08:00
Added bulk delete routes
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
b2c8fbf349
commit
bc8db3deab
|
@ -55,6 +55,17 @@ Route::group(['middleware' => 'auth'], function () {
|
||||||
|
|
||||||
Route::group(['prefix' => 'locations', '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',
|
Route::get('{locationId}/clone',
|
||||||
[LocationsController::class, 'getClone']
|
[LocationsController::class, 'getClone']
|
||||||
)->name('clone/location');
|
)->name('clone/location');
|
||||||
|
@ -68,6 +79,7 @@ Route::group(['middleware' => 'auth'], function () {
|
||||||
'{locationId}/printallassigned',
|
'{locationId}/printallassigned',
|
||||||
[LocationsController::class, 'print_all_assigned']
|
[LocationsController::class, 'print_all_assigned']
|
||||||
)->name('locations.print_all_assigned');
|
)->name('locations.print_all_assigned');
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
Route::resource('locations', LocationsController::class, [
|
Route::resource('locations', LocationsController::class, [
|
||||||
|
|
Loading…
Reference in a new issue