new recipe bar on home working

This commit is contained in:
kaipher7
2026-04-21 23:54:16 -06:00
parent c0b536cba6
commit f8f41d680b
9 changed files with 513 additions and 21 deletions
@@ -26,8 +26,10 @@ public class SiteController {
@GetMapping("/")
public String viewHomePage(Model model) {
List<RecipeDto> recipes = recipeService.getAllRecipes();
model.addAttribute("recipes", recipes);
List<RecipeDto> recipes = recipeService.getAllRecipes();
List<RecipeDto> newest = recipeService.getNewestRecipes(5);
model.addAttribute("recipes", recipes);
model.addAttribute("newestRecipes", newest);
return "home";
}