File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/main/java/ita/tinybite/domain/user Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -208,10 +208,10 @@ public APIResponse<?> validateNickname(@RequestParam String nickname) {
208208 content = @ Content (schema = @ Schema (implementation = ErrorResponse .class ))
209209 )
210210 })
211- @ PutMapping ( " /profile-image" )
211+ @ PatchMapping ( "/me /profile-image" )
212212 public ResponseEntity <Void > updateProfileImage (
213213 @ Parameter (description = "변경할 프로필 이미지 URL" , required = true , example = "https://example.com/image.jpg" )
214- @ RequestParam ( "image" ) String image ,
214+ @ RequestBody String image ,
215215 @ Parameter (hidden = true )
216216 @ AuthenticationPrincipal Long userId ) {
217217
@@ -239,7 +239,7 @@ public ResponseEntity<Void> updateProfileImage(
239239 content = @ Content (schema = @ Schema (implementation = ErrorResponse .class ))
240240 )
241241 })
242- @ DeleteMapping ("/profile-image" )
242+ @ DeleteMapping ("/me/ profile-image" )
243243 public ResponseEntity <Void > deleteProfileImage (
244244 @ Parameter (hidden = true )
245245 @ AuthenticationPrincipal Long userId ) {
Original file line number Diff line number Diff line change @@ -104,6 +104,6 @@ public void updateProfileImage(String image) {
104104 }
105105
106106 public void deleteProfileImage () {
107- this .profileImage = "" ;
107+ this .profileImage = null ;
108108 }
109109}
You can’t perform that action at this time.
0 commit comments