mirror of
https://gitlab.com/etc404/software-engineering-project.git
synced 2026-05-10 20:52:58 +00:00
Update file SiteController.java
This commit is contained in:
@@ -30,6 +30,10 @@ public class SiteController {
|
||||
|
||||
@GetMapping("/")
|
||||
public String viewHomePage(Model model, Principal principal) {
|
||||
List<RecipeDto> newest = recipeService.getNewestRecipes(5);
|
||||
model.addAttribute("recipes", recipes);
|
||||
model.addAttribute("newestRecipes", newest);
|
||||
|
||||
model.addAttribute("guest", principal == null);
|
||||
|
||||
if (principal == null) {
|
||||
|
||||
Reference in New Issue
Block a user