Lab 5 fix
This commit is contained in:
parent
6636d6ed4e
commit
9b8134b185
@ -47,12 +47,8 @@ public class OrderController {
|
|||||||
orderService.addProduct(masterService.getCurrentMasterId(), productId);
|
orderService.addProduct(masterService.getCurrentMasterId(), productId);
|
||||||
}
|
}
|
||||||
|
|
||||||
@DeleteMapping("{product}")
|
@DeleteMapping("/{product}")
|
||||||
public void deleteProduct(@PathVariable("product") Long productId) {
|
public void deleteProduct(@PathVariable("product") Long productId) {
|
||||||
orderService.deleteProduct(masterService.getCurrentMasterId(), productId);
|
orderService.deleteProduct(masterService.getCurrentMasterId(), productId);
|
||||||
}
|
}
|
||||||
@DeleteMapping("/")
|
|
||||||
public void deleteOrders() {
|
|
||||||
orderService.deleteAllOrders();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user