We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 736dd53 commit f5ea1c2Copy full SHA for f5ea1c2
src/main/java/com/example/log4u/domain/user/controller/UserController.java
@@ -44,12 +44,13 @@ public ResponseEntity<UserProfileResponseDto> getMyProfile(
44
return ResponseEntity.ok(userProfileResponseDto);
45
}
46
47
- @GetMapping("/{}")
+ @GetMapping("/{nickname}")
48
public ResponseEntity<UserProfileResponseDto> getUserProfile(
49
- @AuthenticationPrincipal CustomOAuth2User customOAuth2User
+ @AuthenticationPrincipal CustomOAuth2User customOAuth2User,
50
+ @PathVariable String nickname
51
) {
52
UserProfileResponseDto userProfileResponseDto =
- userService.getUserProfile(customOAuth2User.getUserId());
53
+ userService.getUserProfile(nickname);
54
55
56
0 commit comments