Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
Fix: get comment use GET
Browse files Browse the repository at this point in the history
  • Loading branch information
lyujp committed Jul 19, 2024
1 parent dc81a5b commit 21be367
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public CommentController(CommentControllerService commentControllerService) {
this.commentControllerService = commentControllerService;
}

@PostMapping("/list/{postId}/{pageNum}/{pageSize}")
@GetMapping("/list/{postId}/{pageNum}/{pageSize}")
public ResponseDto<CommentListDto> list(@PathVariable Long postId, @PathVariable Integer pageNum, @PathVariable Integer pageSize) {
CommentListDto comment = commentControllerService.getComment(postId, pageNum, pageSize);
return ResponseDto.successWithData(comment);
Expand Down

0 comments on commit 21be367

Please sign in to comment.