+ + {/* Public Routes */} + } + /> + } + /> + } + /> + } + /> + + {/* Protected Routes - All Authenticated Users */} + + + + } + > + {/* If no class selected */} + } + /> + {/* When classId is selected */} + } + /> + + + + + + } + /> + + {/* Teacher-Only Routes */} + + + + } + /> + + {/* User Page - Accessible by Teachers and Students */} + + + + } + /> + + + + + } + /> + + + + + } + /> + + {/* Fallback 404 */} + } + /> + +