From 82ceda3a2e8b855ccb3e4d5fc74a4cb4ad958008 Mon Sep 17 00:00:00 2001 From: Jaehyeon Date: Thu, 16 Nov 2023 23:12:11 +0900 Subject: [PATCH 1/2] Feat(#54): fix invalid uri prefix --- .../java/com/numberone/backend/domain/member/entity/Member.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/numberone/backend/domain/member/entity/Member.java b/src/main/java/com/numberone/backend/domain/member/entity/Member.java index cea2b8e5..114104b9 100644 --- a/src/main/java/com/numberone/backend/domain/member/entity/Member.java +++ b/src/main/java/com/numberone/backend/domain/member/entity/Member.java @@ -16,6 +16,7 @@ import lombok.Getter; import lombok.NoArgsConstructor; import org.hibernate.annotations.Comment; +import org.springframework.web.bind.annotation.RequestMapping; import java.util.ArrayList; import java.util.List; @@ -24,6 +25,7 @@ @Entity @NoArgsConstructor(access = AccessLevel.PROTECTED) @Getter +@RequestMapping("/api/members") @Table(name = "MEMBER") public class Member extends BaseTimeEntity { @Id From 00ca3c9aa8ff0a39a0dd89aef08e768d92a3f6cb Mon Sep 17 00:00:00 2001 From: Jaehyeon Date: Thu, 16 Nov 2023 23:14:20 +0900 Subject: [PATCH 2/2] Feat(#54): fix invalid uri prefix --- .../backend/domain/member/controller/MemberController.java | 1 + .../java/com/numberone/backend/domain/member/entity/Member.java | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/numberone/backend/domain/member/controller/MemberController.java b/src/main/java/com/numberone/backend/domain/member/controller/MemberController.java index 64e7cea8..2344e859 100644 --- a/src/main/java/com/numberone/backend/domain/member/controller/MemberController.java +++ b/src/main/java/com/numberone/backend/domain/member/controller/MemberController.java @@ -28,6 +28,7 @@ @Slf4j @Tag(name = "members", description = "사용자 관련 API") @RestController +@RequestMapping("/api/members") @RequiredArgsConstructor public class MemberController { private final MemberService memberService; diff --git a/src/main/java/com/numberone/backend/domain/member/entity/Member.java b/src/main/java/com/numberone/backend/domain/member/entity/Member.java index 114104b9..53d9ee4a 100644 --- a/src/main/java/com/numberone/backend/domain/member/entity/Member.java +++ b/src/main/java/com/numberone/backend/domain/member/entity/Member.java @@ -25,7 +25,6 @@ @Entity @NoArgsConstructor(access = AccessLevel.PROTECTED) @Getter -@RequestMapping("/api/members") @Table(name = "MEMBER") public class Member extends BaseTimeEntity { @Id