Skip to content

Commit

Permalink
Merge pull request #14 from team-sniff/feat-demoday
Browse files Browse the repository at this point in the history
[Fix] url 통일을 위한 수정
  • Loading branch information
yoonsseo authored Dec 21, 2023
2 parents 80c84f4 + 21b5cd2 commit 86688b2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@
public class DemoDayController {
private final DemoDayService demoDayService;

@GetMapping("/vote")
@GetMapping("/votes")
public DemoDayResultDto getTeamList() {
return demoDayService.getTeamList();
}

@PostMapping("/vote")
@PostMapping("/votes")
public ResponseEntity<Void> demoDayVote(@RequestBody TeamVoteDto teamVoteDto, @AuthenticationPrincipal User user) {
return demoDayService.demoDayVote(teamVoteDto, user);
}

@GetMapping("/result")
@GetMapping("/results")
public DemoDayResultDto getDemoDayVoteResult() {
return demoDayService.getTeamList();
}
Expand Down

0 comments on commit 86688b2

Please sign in to comment.