mirror of
https://gitlab.com/etc404/software-engineering-project.git
synced 2026-05-10 20:52:58 +00:00
explore page working i believe
This commit is contained in:
@@ -62,11 +62,18 @@ public class SiteController {
|
||||
public String explore(
|
||||
@RequestParam(required = false) String q,
|
||||
@RequestParam(required = false) List<String> tags,
|
||||
@RequestParam(required = false) List<Integer> prices,
|
||||
@RequestParam(required = false) List<Integer> cookTime,
|
||||
@RequestParam(required = false) List<Integer> prepTime,
|
||||
Model model
|
||||
) {
|
||||
List<RecipeDto> recipes = recipeService.getRecipes(q, tags);
|
||||
List<RecipeDto> recipes = recipeService.getRecipes(q, tags, prices, cookTime, prepTime);
|
||||
model.addAttribute("recipes", recipes);
|
||||
String displayQuery = q;
|
||||
|
||||
|
||||
model.addAttribute("q", q);
|
||||
model.addAttribute("tags", tags);
|
||||
return "explore";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user