From 032d49071b5bc26eef49e4df08396d6532362418 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98yj-leez=E2=80=99?= Date: Sat, 23 Dec 2023 00:25:37 +0900 Subject: [PATCH] [Fix] test --- .../sniff/springvote18th/partleader/PartLeaderController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/sniff/springvote18th/partleader/PartLeaderController.java b/src/main/java/com/sniff/springvote18th/partleader/PartLeaderController.java index c3bdb82..16e788e 100644 --- a/src/main/java/com/sniff/springvote18th/partleader/PartLeaderController.java +++ b/src/main/java/com/sniff/springvote18th/partleader/PartLeaderController.java @@ -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); }