Update ProductController.java

This commit is contained in:
kimhyungkook
2019-11-05 16:40:58 +09:00
committed by GitHub
parent 47dc9d9af0
commit 3f8abaa58c

View File

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