Open MiriamLaw opened 5 hours ago
I will likely need an endpoint for the sun sign placards on the homepage. This could be a simple endpoint that fetches data about each sun sign, such as the name, date range, and a brief description for each sign. For example, you could create an endpoint like /sunsigns
that returns the information for all 12 signs, which can then be displayed as placards on the homepage.
Here's a possible approach:
Example controller method:
@GetMapping("/sunsigns")
public String getSunSigns(Model model) {
// Assuming you have a service that provides the sun signs data
List<SunSign> sunSigns = sunSignService.getAllSunSigns();
model.addAttribute("sunSigns", sunSigns);
return "homepage";
}
In your view (HTML/Thymeleaf), you can then loop over the sunSigns
attribute to display them as placards.