Update ProductController.java
This commit is contained in:
@@ -11,7 +11,7 @@ public class ProductController {
|
|||||||
@Autowired
|
@Autowired
|
||||||
ProductService productService;
|
ProductService productService;
|
||||||
|
|
||||||
@GetMapping("/items/{productId}")
|
@GetMapping("/product/{productId}")
|
||||||
Product productStockCheck(@PathVariable(value = "productId") Long productId) {
|
Product productStockCheck(@PathVariable(value = "productId") Long productId) {
|
||||||
return this.productService.getProductById(productId);
|
return this.productService.getProductById(productId);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user