feat: implement child route management for client and staff modules; enhance routing structure for better navigation

This commit is contained in:
Achintha Isuru
2026-02-04 17:13:55 -05:00
parent bb09925668
commit fa6fa90bb8
10 changed files with 55 additions and 16 deletions

View File

@@ -10,6 +10,14 @@
class ClientPaths {
ClientPaths._();
// ==========================================================================
// CHILD ROUTE MANAGEMENT
// ==========================================================================
/// Generate child route based on the given route and parent route
///
/// This is useful for creating nested routes within modules.
static String childRoute(String parent, String child) => child.replaceFirst(parent, '');
// ==========================================================================
// AUTHENTICATION
// ==========================================================================

View File

@@ -10,6 +10,14 @@
class StaffPaths {
StaffPaths._();
// ==========================================================================
// CHILD ROUTE MANAGEMENT
// ==========================================================================
/// Generate child route based on the given route and parent route
///
/// This is useful for creating nested routes within modules.
static String childRoute(String parent, String child) => child.replaceFirst(parent, '');
// ==========================================================================
// AUTHENTICATION
// ==========================================================================