diff --git a/src/main/java/ch/wisv/events/sales/controller/sell/SalesSellCustomerController.java b/src/main/java/ch/wisv/events/sales/controller/sell/SalesSellCustomerController.java index b8a99e7e..28773298 100644 --- a/src/main/java/ch/wisv/events/sales/controller/sell/SalesSellCustomerController.java +++ b/src/main/java/ch/wisv/events/sales/controller/sell/SalesSellCustomerController.java @@ -55,7 +55,7 @@ public SalesSellCustomerController( * * @return String */ - @GetMapping("") + @GetMapping({"","/"}) public String identifyCustomer(Model model, RedirectAttributes redirect, @PathVariable String publicReference) { try { Order order = orderService.getByReference(publicReference); @@ -75,7 +75,7 @@ public String identifyCustomer(Model model, RedirectAttributes redirect, @PathVa } } - @PostMapping("") + @PostMapping({"","/"}) public String determineCustomer(RedirectAttributes redirect, @PathVariable String publicReference, @ModelAttribute Customer customer) { Order order; try { diff --git a/src/main/java/ch/wisv/events/sales/controller/sell/SalesSellMainController.java b/src/main/java/ch/wisv/events/sales/controller/sell/SalesSellMainController.java index 8826132c..0126d16e 100644 --- a/src/main/java/ch/wisv/events/sales/controller/sell/SalesSellMainController.java +++ b/src/main/java/ch/wisv/events/sales/controller/sell/SalesSellMainController.java @@ -66,7 +66,7 @@ public SalesSellMainController( * * @return String */ - @GetMapping("") + @GetMapping({"","/"}) public String index(Model model) { Customer currentUser = authenticationService.getCurrentCustomer(); model.addAttribute("products", salesService.getAllGrantedProductByCustomer(currentUser)); @@ -82,7 +82,7 @@ public String index(Model model) { * * @return String */ - @PostMapping("") + @PostMapping({"","/"}) public String createOrder(RedirectAttributes redirect, @ModelAttribute OrderProductDto orderProductDto) { if (orderProductDto.getProducts().isEmpty()) { redirect.addFlashAttribute("error", "Shopping cart can not be empty!");