post für list entfernt weils nicht reingehört

This commit is contained in:
Technoir committed 2026-10-09 16:45:53 +02:00
1 parent db87bbe34e
commit 19f9c1db7a
1 file changed
-6
@@ -25,12 +25,6 @@ public class PageController {
@Autowired
private ShoppingItemRepository shoppingItemRepository;
@PostMapping("api/list")
public String addList(@Valid @ModelAttribute ShoppingList newList){
shoppingListRepository.save(newList);
return "redirect:/";
}
@GetMapping("/")
public String index(Model model){
model.addAttribute("lists", shoppingListRepository.findAll());