deleteMapping methode entfernt und zu ShoppingListController verschoben
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user