Add link to eventPlanner.html in the controller

This commit is contained in:
Mathis Kral 2023-11-07 17:50:29 +01:00 committed by Simon Bruder
parent 6e677eba82
commit c49210ca3c
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -24,6 +24,11 @@ public class OrderController {
return "orders"; return "orders";
} }
@GetMapping("/event")
public String event() {
return "eventPlanner";
}
@PostMapping("/orders/remove") @PostMapping("/orders/remove")
public String removeOrder(@RequestParam int orderID) { public String removeOrder(@RequestParam int orderID) {
orderRepository.removeOrder(orderID); orderRepository.removeOrder(orderID);