Class InsightsWebController

java.lang.Object
com.endurancetrio.app.insight.web.InsightsWebController

@EnduranceTrioWebController public class InsightsWebController extends Object
The InsightsWebController handles Thymeleaf views for the Insights section.
  • Constructor Details

  • Method Details

    • getInsights

      @GetMapping("/{language:en|pt}/insights") public String getInsights(@PathVariable String language, @RequestParam(defaultValue="0") int page, jakarta.servlet.http.HttpServletRequest request, org.springframework.ui.Model model)
      Returns the insights listing page with paginated articles.
      Parameters:
      language - the language path variable (en or pt)
      page - the page number from the query string (default 0)
      request - the current HTTP request for building page metadata
      model - the model to populate with view attributes
      Returns:
      the insights view name
    • getInsightDetail

      @GetMapping("/{language:en|pt}/insights/{slug}") public String getInsightDetail(@PathVariable String language, @PathVariable String slug, jakarta.servlet.http.HttpServletRequest request, org.springframework.ui.Model model)
      Returns the article detail page for the given slug.
      Parameters:
      language - the language path variable (en or pt)
      slug - the article URL slug
      request - the current HTTP request for building page metadata
      model - the model to populate with view attributes
      Returns:
      the insight detail view name