Skip to content

Commit c70179f

Browse files
committed
fix[post]:api name
1 parent e685d0a commit c70179f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/src/main/java/com/ai/lawyer/domain/poll/controller/PollController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ public ResponseEntity<ApiResponse<List<PollDto>>> getTopOngoingPolls(@RequestPar
149149
return ResponseEntity.ok(new ApiResponse<>(200, message, polls));
150150
}
151151

152-
@Operation(summary = "index(순번)로 투표하기 - Swagger 편의용")
153-
@PostMapping("/{pollId}/vote-by-index")
152+
@Operation(summary = "index(순번)로 투표하기")
153+
@PostMapping("/{pollId}/voting")
154154
public ResponseEntity<ApiResponse<PollVoteDto>> voteByIndex(@PathVariable Long pollId, @RequestParam int index) {
155155
Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
156156
Long memberId = Long.parseLong(authentication.getName());

0 commit comments

Comments
 (0)