post für list entfernt weils nicht reingehört
This commit is contained in:
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());
|
||||
|
||||
Reference in new issue
Block a user