File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
src/main/java/com/back/domain/profile/controller Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 1111import org .springframework .web .bind .annotation .*;
1212
1313@ RestController
14- @ RequestMapping ("/me/profile" )
14+ @ RequestMapping ("/api/ me/profile" )
1515@ RequiredArgsConstructor
1616public class ProfileController {
1717
@@ -24,9 +24,14 @@ public RsData<ProfileResponseDto> getProfile(@AuthenticationPrincipal(expression
2424 return RsData .successOf (body ); // code=200, message="success"
2525 }
2626
27- @ PutMapping
28- public RsData <ProfileResponseDto > updateProfile (@ AuthenticationPrincipal (expression = "id" ) Long userId , @ Valid @ RequestBody ProfileUpdateRequestDto profileUpdateRequestDto ) {
29- ProfileResponseDto body = profileService .updateProfile (userId , profileUpdateRequestDto );
30- return RsData .successOf (body ); // code=200
27+ // PUT 제거: PATCH 전용으로 운영
28+
29+ @ PatchMapping
30+ public RsData <ProfileResponseDto > patchNickname (
31+ @ AuthenticationPrincipal (expression = "id" ) Long userId ,
32+ @ Valid @ RequestBody ProfileUpdateRequestDto request
33+ ) {
34+ ProfileResponseDto body = profileService .updateProfile (userId , request );
35+ return RsData .successOf (body );
3136 }
3237}
You can’t perform that action at this time.
0 commit comments