Skip to content

Commit

Permalink
refactor: (#95) PathVariable 값인 id의 변수명을 postId로 더 명확하게 개선
Browse files Browse the repository at this point in the history
  • Loading branch information
tjdtls690 committed Jul 30, 2023
1 parent e0f4990 commit bc66a7b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@ public ResponseEntity<VoteOptionStatisticsResponse> getVoteOptionStatistics(
@ApiResponse(responseCode = "200", description = "게시물이 조기 마감 되었습니다."),
@ApiResponse(responseCode = "400", description = "잘못된 입력입니다.")
})
@PatchMapping("/{id}/close")
@PatchMapping("/{postId}/close")
public ResponseEntity<Void> postClosedEarly(
@PathVariable final Long id,
@PathVariable final Long postId,
@Auth final Member loginMember
) {
postService.postClosedEarlyById(id, loginMember);
postService.postClosedEarlyById(postId, loginMember);
return ResponseEntity.ok().build();
}

Expand Down

0 comments on commit bc66a7b

Please sign in to comment.