From ff309aeb6ea8f7e27c83e83154b8633eda35a45a Mon Sep 17 00:00:00 2001 From: Sookyung Kang Date: Fri, 15 Mar 2024 06:49:06 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F:=20fix=20swagger=EC=97=90=20?= =?UTF-8?q?=ED=8A=B9=EC=A0=95=20api=EB=A7=8C=20=EC=95=88=EB=9C=A8=EB=8A=94?= =?UTF-8?q?=20=EB=AC=B8=EC=A0=9C=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/th/plu/api/controller/member/MemberController.kt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/plu-api/src/main/kotlin/com/th/plu/api/controller/member/MemberController.kt b/plu-api/src/main/kotlin/com/th/plu/api/controller/member/MemberController.kt index 807765c..cb3789d 100644 --- a/plu-api/src/main/kotlin/com/th/plu/api/controller/member/MemberController.kt +++ b/plu-api/src/main/kotlin/com/th/plu/api/controller/member/MemberController.kt @@ -14,11 +14,12 @@ import org.springframework.web.bind.annotation.* @Tag(name = "Member") @RestController +@RequestMapping("/api") class MemberController( private val memberService: MemberService, ) { @Operation(summary = "닉네임 중복 체크") - @PostMapping("/api/v1/member/nickname/dupl") + @PostMapping("/v1/member/nickname/dupl") fun checkNicknameDuplication(@RequestBody request: CheckNicknameRequestDto): ApiResponse { val response = memberService.checkNicknameDuplication(request) return ApiResponse.success(response) @@ -26,7 +27,7 @@ class MemberController( @Auth @Operation(summary = "[인증] 닉네임 수정") - @PutMapping("/api/v1/member/{memberId}/nickname") + @PutMapping("/v1/member/{memberId}/nickname") fun updateNickname( @PathVariable memberId: Long, @RequestBody request: UpdateNicknameRequestDto @@ -37,7 +38,7 @@ class MemberController( @Auth @Operation(summary = "[인증] 회원 탈퇴") - @DeleteMapping("/api/v1/member") + @DeleteMapping("/v1/member") fun deleteMember(@MemberId memberId: Long): ApiResponse { memberService.deleteMember(memberId) return ApiResponse.success() @@ -45,7 +46,7 @@ class MemberController( @Auth @Operation(summary = "[인증] 마이페이지 조회") - @GetMapping("/api/v1/mypage") + @GetMapping("/v1/mypage") fun getMyPageInfo(@MemberId memberId: Long): ApiResponse { val myPageInfo = memberService.getMyPageInfo(memberId) return ApiResponse.success(data = myPageInfo)