Update ProductController.java

This commit is contained in:
kimhyungkook
2019-11-08 15:14:33 +09:00
committed by GitHub
parent 68c5afc0ba
commit 656150d27a

View File

@@ -11,7 +11,7 @@ public class ProductController {
@Autowired @Autowired
ProductService productService; ProductService productService;
@GetMapping("/product/{productId}") @GetMapping("/item/{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);
} }