Class HomeController

java.lang.Object
com.iu.javadatastructureslab.controller.HomeController

@Controller public class HomeController extends Object
Serves the landing page with project statistics.
  • Constructor Details

    • HomeController

      public HomeController(ProjectStatsService projectStatsService)
      Creates the controller with the stats service.
      Parameters:
      projectStatsService - service for computing project stats
  • Method Details

    • home

      @GetMapping("/") public String home(org.springframework.ui.Model model)
      Renders the home page with dynamic stats.
      Parameters:
      model - model used to expose view attributes
      Returns:
      the home view name