Skip to content

Commit

Permalink
Fix: RequestParam 으로 경로 받는 방식 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
gytjd committed Oct 30, 2024
1 parent 3629169 commit 74152b2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ public CommonResult deleteMember(@RequestBody MemberDeleteRequestDto deleteMembe


// 특정 회원 조회
@GetMapping("/email/{email}") // PathVariable로 이메일을 전달
public SingleResult<MemberCredentialDTO> getMember(@PathVariable String email) {
@GetMapping("/email") // PathVariable로 이메일을 전달
public SingleResult<MemberCredentialDTO> getMember(@RequestParam String email) {
Member findMember = memberService.getMemberByEmail(email); // Optional을 반환하지 않는다고 가정
System.out.println(email);
System.out.println(findMember.getAccess_key());
Expand Down

0 comments on commit 74152b2

Please sign in to comment.