Closed nirzaf closed 2 months ago
Modification to Unit Group Management URL The main URL for managing the unit groups has been updated. This enhances the semantic meaning, improving readability and making the purpose of the URL clear.
Update in Action URL Paths The URLs for certain actions such as editing unit groups have been updated. This is in line with the changes in the management URL and ensures consistency throughout the platform.
Expansion of the API Routes The application's API functionality has been expanded with a new network route. This route allows programmatic editing of unit groups, thus increasing the flexibility and power of the application's API.
Related to #1986
Fix the issue with the edit unit group page not displaying correctly.
Correct URL paths in
app/Crud/UnitGroupCrud.php
mainRoute
property to'units/groups'
namespace
property to'ns.units-groups'
edit
action URL insetActions
method tons()->url('/dashboard/units/groups/edit/' . $entry->id)
delete
action URL insetActions
method tons()->url('/api/crud/ns.units-groups/' . $entry->id)
Add new route in
routes/api/units.php
Route::get('units/groups/edit/{group}', [UnitsController::class, 'editUnitGroup']);
For more details, open the Copilot Workspace session.