Usew route group for locations
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
84a14918bb
commit
9b522006f3
1 changed files with 20 additions and 14 deletions
|
@ -40,23 +40,29 @@ Route::group(['middleware' => 'auth'], function () {
|
||||||
'parameters' => ['category' => 'category_id'],
|
'parameters' => ['category' => 'category_id'],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
Route::get('locations/{locationId}/clone',
|
|
||||||
[LocationsController::class, 'getClone']
|
|
||||||
)->name('clone/license');
|
|
||||||
|
|
||||||
Route::get(
|
|
||||||
'locations/{locationId}/printassigned',
|
|
||||||
[LocationsController::class, 'print_assigned']
|
|
||||||
)->name('locations.print_assigned');
|
|
||||||
|
|
||||||
Route::get(
|
|
||||||
'locations/{locationId}/printallassigned',
|
|
||||||
[LocationsController::class, 'print_all_assigned']
|
|
||||||
)->name('locations.print_all_assigned');
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Locations
|
* Locations
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
Route::group(['prefix' => 'locations', 'middleware' => ['auth']], function () {
|
||||||
|
|
||||||
|
Route::get('{locationId}/clone',
|
||||||
|
[LocationsController::class, 'getClone']
|
||||||
|
)->name('clone/license');
|
||||||
|
|
||||||
|
Route::get(
|
||||||
|
'{locationId}/printassigned',
|
||||||
|
[LocationsController::class, 'print_assigned']
|
||||||
|
)->name('locations.print_assigned');
|
||||||
|
|
||||||
|
Route::get(
|
||||||
|
'{locationId}/printallassigned',
|
||||||
|
[LocationsController::class, 'print_all_assigned']
|
||||||
|
)->name('locations.print_all_assigned');
|
||||||
|
});
|
||||||
|
|
||||||
Route::resource('locations', LocationsController::class, [
|
Route::resource('locations', LocationsController::class, [
|
||||||
'parameters' => ['location' => 'location_id'],
|
'parameters' => ['location' => 'location_id'],
|
||||||
]);
|
]);
|
||||||
|
|
Loading…
Add table
Reference in a new issue