Skip to content

Commit

Permalink
fix: 관리자 리뷰 조희 api 엔드포인트 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
parkcoldroad committed May 18, 2023
1 parent 7698a85 commit f8ad912
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@


import com.liberty52.product.service.applicationservice.ReviewRetrieveService;
import com.liberty52.product.service.controller.dto.AdminReviewDetailResponse;
import com.liberty52.product.service.controller.dto.AdminReviewRetrieveResponse;
import com.liberty52.product.service.controller.dto.ReviewRetrieveResponse;
import lombok.RequiredArgsConstructor;
Expand Down Expand Up @@ -34,9 +35,15 @@ public ResponseEntity<ReviewRetrieveResponse> retrieveReview(
return ResponseEntity.ok(response);
}

@GetMapping("/reviews")
@GetMapping("/admin/reviews")
public ResponseEntity<AdminReviewRetrieveResponse> retrieveReview(@RequestHeader("LB-Role") String role, Pageable pageable){
AdminReviewRetrieveResponse response = reviewRetrieveService.retrieveReviews(role,pageable);
return ResponseEntity.ok(response);
}

@GetMapping("/admin/reviews/{reviewId}")
public ResponseEntity<AdminReviewDetailResponse> retrieveReviewDetail(@RequestHeader("LB-Role") String role, @PathVariable String reviewId){
AdminReviewDetailResponse response = reviewRetrieveService.retrieveReviewDetail(role,reviewId);
return ResponseEntity.ok(response);
}
}

0 comments on commit f8ad912

Please sign in to comment.