Update ProductController.java

This commit is contained in:
kimhyungkook
2019-11-14 16:24:19 +09:00
committed by GitHub
parent cc07dd551d
commit c1a52f2b45

View File

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