diff --git a/src/main/java/com/helpmeCookies/product/controller/ProductController.java b/src/main/java/com/helpmeCookies/product/controller/ProductController.java index 56fcb37..2ccdffe 100644 --- a/src/main/java/com/helpmeCookies/product/controller/ProductController.java +++ b/src/main/java/com/helpmeCookies/product/controller/ProductController.java @@ -101,11 +101,11 @@ public ResponseEntity getProductsByPage( } @GetMapping("/feed") - public ResponseEntity getProductsWithRandomPaging( + public ResponseEntity> getProductsWithRandomPaging( @RequestParam(name = "size", required = false, defaultValue = "20") int size ) { Pageable pageable = PageRequest.of(0, size); - return ResponseEntity.ok(productService.getProductsWithRandomPaging(pageable)); + return ResponseEntity.ok(ApiResponse.success(SuccessCode.OK, productService.getProductsWithRandomPaging(pageable))); } @GetMapping("/{productId}/reviews")