Skip to content

Commit

Permalink
feat: 회원 수정 API가 토큰을 통해 회원 정보를 받도록 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
holyPigeon committed Dec 4, 2024
1 parent 9f5c128 commit 27e1994
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,11 @@ public ApiResponse<MyPageResponse.MyPageDTO> findByLoginId(@PathVariable("login_
return ApiResponse.ok(memberDTO);
}

@PatchMapping("/profile/{login_id}")
@PatchMapping("/profile")
public ApiResponse<MyPageResponse.MyPageDTO> updateProfile(
@PathVariable("login_id") String loginId,
@AuthenticationPrincipal CustomMemberDetails customMemberDetails,
@RequestBody MyPageRequest.UpdateProfileDTO updateRequest) {
String loginId = customMemberDetails.getMember().getLoginId();
MyPageResponse.MyPageDTO updatedMember = memberService.updateProfile(loginId, updateRequest);
return ApiResponse.ok(updatedMember);
}
Expand Down

0 comments on commit 27e1994

Please sign in to comment.