Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into feat-security
  • Loading branch information
yoonsseo committed Dec 22, 2023
2 parents b281538 + 032d490 commit 27e5292
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ public class PartLeaderController {

private final PartLeaderService partLeaderService;

@GetMapping("/vote")
@GetMapping("/votes")
public CandidateResponseDto getCandidateList(@RequestParam String part){
return partLeaderService.getCandidateResult(part);
}

@PostMapping("/vote")
@PostMapping("/votes")
public ResponseEntity votePartLeader(@RequestParam String part, @RequestBody PartLeaderRequestDto dto, @AuthenticationPrincipal User user){
return partLeaderService.votePartLeader(part, dto, user);
}
Expand Down

0 comments on commit 27e5292

Please sign in to comment.