Skip to content

Commit

Permalink
feat: Create an api for access my page data
Browse files Browse the repository at this point in the history
  • Loading branch information
stoneHee99 committed Dec 19, 2023
1 parent de3f288 commit f21c9e4
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ public ResponseEntity<MemberInfoResponse> getMyInfo(@Auth final Accessor accesso
}


@PutMapping("/api/v1/member")
public ResponseEntity<MemberUpdateResponse> updateMyInfo(
@PathVariable("member_id") final Long memberId,
@RequestBody MemberUpdateRequest request
) {
MemberUpdateResponse response = memberService.updateMemberInfo(memberId, request);
return ResponseEntity.ok(response);
}
// @PutMapping("/api/v1/member")
// public ResponseEntity<MemberUpdateResponse> updateMyInfo(
// @PathVariable("member_id") final Long memberId,
// @RequestBody MemberUpdateRequest request
// ) {
// MemberUpdateResponse response = memberService.updateMemberInfo(memberId, request);
// return ResponseEntity.ok(response);
// }
}

0 comments on commit f21c9e4

Please sign in to comment.