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 a9a8529ccb
commit 79bc979f78
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

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