diff --git a/src/main/java/com/example/demo/order/OrderController.java b/src/main/java/com/example/demo/order/OrderController.java index ab8a710..fceb4e3 100644 --- a/src/main/java/com/example/demo/order/OrderController.java +++ b/src/main/java/com/example/demo/order/OrderController.java @@ -47,12 +47,8 @@ public class OrderController { orderService.addProduct(masterService.getCurrentMasterId(), productId); } - @DeleteMapping("{product}") + @DeleteMapping("/{product}") public void deleteProduct(@PathVariable("product") Long productId) { orderService.deleteProduct(masterService.getCurrentMasterId(), productId); } - @DeleteMapping("/") - public void deleteOrders() { - orderService.deleteAllOrders(); - } }