From c10812f0c821c904f09635c3b4ee4e23f53d0a51 Mon Sep 17 00:00:00 2001 From: seohyun-lee Date: Sun, 18 Feb 2024 16:01:40 +0900 Subject: [PATCH] =?UTF-8?q?Refactor(Match)=20:=20=EB=A9=94=EC=9D=B4?= =?UTF-8?q?=ED=8A=B8=20=EA=B4=80=EA=B3=84=EA=B0=80=20=EC=9E=88=EB=8A=94=20?= =?UTF-8?q?=EA=B2=BD=EC=9A=B0=20=EC=83=81=ED=83=9C=20=EC=BD=94=EB=93=9C=20?= =?UTF-8?q?badRequest=EB=A1=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/matching/controller/MatchingController.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/withmate/src/main/java/com/gdscewha/withmate/domain/matching/controller/MatchingController.java b/withmate/src/main/java/com/gdscewha/withmate/domain/matching/controller/MatchingController.java index 80dedd5..35dc2ef 100644 --- a/withmate/src/main/java/com/gdscewha/withmate/domain/matching/controller/MatchingController.java +++ b/withmate/src/main/java/com/gdscewha/withmate/domain/matching/controller/MatchingController.java @@ -26,10 +26,9 @@ public class MatchingController { @GetMapping("/match") public ResponseEntity getMatchingInfo() { Member member = memberService.getCurrentMember(); - // match 불가: - // 메이트 관계가 있는 경우 리다이렉트 + // match 불가: 메이트 관계가 있는 경우 if (member.getIsRelationed()) - return ResponseEntity.ok().header("Location", "/api/home").build(); + return ResponseEntity.badRequest().header("Location", "/api/home").body("메이트를 맺은 상태이므로 매칭할 수 없습니다."); // match 가능: MatchingInputDto resDto = matchingService.getCurrentMatchingDto(); // 아직 매칭 X