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