Lab 5 fix

This commit is contained in:
shadowik 2023-05-01 17:11:27 +04:00
parent 6636d6ed4e
commit 9b8134b185

View File

@ -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();
}
}