Skip to content

Commit

Permalink
refactor: 회원 중복 체크 URI 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
This2sho committed Oct 17, 2023
1 parent fc430c8 commit 22a8a30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public ResponseEntity<MemberUpdateResponse> updateMember(@AuthPrincipal MemberId
}

@ApiVersion(value = {2})
@GetMapping("/members/check")
@GetMapping("/profile/check-duplicate")
public ResponseEntity<DuplicateCheckResponse> validateDuplicate(@RequestParam String target,
@RequestParam String value) {
final DuplicateCheckResponse duplicateCheckResponse = memberService.checkDuplicate(target, value);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ public MemberControllerDocsTest(final MockMvc mockMvc,
final DuplicateCheckResponse duplicateCheckResponse = new DuplicateCheckResponse(false);
when(memberService.checkDuplicate(target, value)).thenReturn(duplicateCheckResponse);

final MockHttpServletRequestBuilder 중복_요청 = get("/members/check")
final MockHttpServletRequestBuilder 중복_요청 = get("/profile/check-duplicate")
.header("X-API-VERSION", 2)
.queryParam("target", target)
.queryParam("value", value);
Expand Down

0 comments on commit 22a8a30

Please sign in to comment.