Skip to content

Commit f5ea1c2

Browse files
committed
fix: 테스트 통과 위해 pathvariable 추가
1 parent 736dd53 commit f5ea1c2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/main/java/com/example/log4u/domain/user/controller/UserController.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,13 @@ public ResponseEntity<UserProfileResponseDto> getMyProfile(
4444
return ResponseEntity.ok(userProfileResponseDto);
4545
}
4646

47-
@GetMapping("/{}")
47+
@GetMapping("/{nickname}")
4848
public ResponseEntity<UserProfileResponseDto> getUserProfile(
49-
@AuthenticationPrincipal CustomOAuth2User customOAuth2User
49+
@AuthenticationPrincipal CustomOAuth2User customOAuth2User,
50+
@PathVariable String nickname
5051
) {
5152
UserProfileResponseDto userProfileResponseDto =
52-
userService.getUserProfile(customOAuth2User.getUserId());
53+
userService.getUserProfile(nickname);
5354
return ResponseEntity.ok(userProfileResponseDto);
5455
}
5556

0 commit comments

Comments
 (0)