Skip to content

Commit

Permalink
Merge pull request #104 from kakao-tech-campus-2nd-step3/weekly
Browse files Browse the repository at this point in the history
fix: ApiResponse 형식 통일
  • Loading branch information
sim-mer authored Nov 14, 2024
2 parents 3ffccb2 + 0f4c124 commit fe7f36b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ public ResponseEntity<ProductPage.Paging> getProductsByPage(
}

@GetMapping("/feed")
public ResponseEntity<ProductPage.Paging> getProductsWithRandomPaging(
public ResponseEntity<ApiResponse<ProductPage.Paging>> 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")
Expand Down

0 comments on commit fe7f36b

Please sign in to comment.