Package com.ericbouchut.learndev.course
Class DashboardController
java.lang.Object
com.ericbouchut.learndev.course.DashboardController
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 Summary
ConstructorsConstructorDescriptionDashboardController(EnrollmentService enrollmentService, UserRepository users) -
Method Summary
-
Constructor Details
-
DashboardController
-
-
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 usermodel- receives the active enrollments- Returns:
- the dashboard view name
-