Class DashboardController

java.lang.Object
com.ericbouchut.learndev.course.DashboardController

@Controller public class DashboardController extends Object
Web endpoint of the student dashboard: the logged-in user's active courses with their enrollment status. Lives in the course package because the page renders enrollment data (the auth package only brings the user here after login).
  • Constructor Details

  • Method Details

    • dashboard

      @GetMapping("/dashboard") public String dashboard(Principal principal, org.springframework.ui.Model model)
      Display the dashboard with the student's active enrollments (dropped ones are not listed; re-enrolling brings them back).
      Parameters:
      principal - the logged-in user
      model - receives the active enrollments
      Returns:
      the dashboard view name