From 63c23f9f7e63b0f6ba82cd1c82ebeacf81867b92 Mon Sep 17 00:00:00 2001 From: SewoongPark Date: Sun, 11 Aug 2024 16:32:26 +0900 Subject: [PATCH] =?UTF-8?q?=ED=8F=89=EA=B0=80=20api=20=EA=B6=8C=ED=95=9C?= =?UTF-8?q?=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config | 2 +- .../domain/evaluation/EvaluationController.java | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/config b/config index 8146dce..d4543e4 160000 --- a/config +++ b/config @@ -1 +1 @@ -Subproject commit 8146dcea846ada04f12384eb277124a31938a9a9 +Subproject commit d4543e4073e895eb2d9a71fa5200301a138b03eb diff --git a/src/main/java/com/example/mssaembackendv2/domain/evaluation/EvaluationController.java b/src/main/java/com/example/mssaembackendv2/domain/evaluation/EvaluationController.java index 0f71674..710f557 100644 --- a/src/main/java/com/example/mssaembackendv2/domain/evaluation/EvaluationController.java +++ b/src/main/java/com/example/mssaembackendv2/domain/evaluation/EvaluationController.java @@ -11,7 +11,6 @@ @RequiredArgsConstructor @RestController -@RequestMapping("/member/evaluations") public class EvaluationController { private final EvaluationService evaluationService; @@ -19,7 +18,7 @@ public class EvaluationController { /** * 평가 추가 */ - @PostMapping("") + @PostMapping("/member/evaluations") public ResponseEntity insertEvaluation(@CurrentMember Member member, @RequestBody EvaluationInfo evaluationInfo) { return ResponseEntity.ok(evaluationService.insertEvaluation(member, evaluationInfo)); } @@ -27,7 +26,7 @@ public ResponseEntity insertEvaluation(@CurrentMember Member member, @Re /** * 평가 받은 사람의 평가 내용 조회 */ - @GetMapping("/{worryBoardId}") + @GetMapping("/member/evaluations/{worryBoardId}") public ResponseEntity selectEvaluation(@CurrentMember Member member, @PathVariable Long worryBoardId){ return ResponseEntity.ok(evaluationService.selectEvaluation(member, worryBoardId)); } @@ -35,7 +34,7 @@ public ResponseEntity selectEvaluation(@CurrentMember Member m /** * 자신이 받은 평가 count */ - @GetMapping("/count") + @GetMapping("/evaluations/count") public ResponseEntity countEvaluation(@RequestParam Long memberId){ return ResponseEntity.ok(evaluationService.countEvaluation(memberId)); }