feat: implement child route management for client and staff modules; enhance routing structure for better navigation
This commit is contained in:
@@ -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
|
||||
// ==========================================================================
|
||||
|
||||
@@ -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
|
||||
// ==========================================================================
|
||||
|
||||
Reference in New Issue
Block a user