deleteMapping methode entfernt und zu ShoppingListController verschoben

This commit is contained in:
Technoir committed 2026-10-07 15:13:02 +02:00
1 parent 226e7f68ce
commit 6bd55f6e86
1 file changed
-6
@@ -37,12 +37,6 @@ public class PageController {
return "index";
}
@DeleteMapping("/api/list/{id}")
public String deleteList(Model model, @PathVariable UUID id){
shoppingListRepository.deleteById(id);
return "redirect:/";
}
/**
* Gibt die list.html Seite einer Liste zurück mit den Attributen list, categories und items
* @param model