Skip to content

Commit

Permalink
fix : update user
Browse files Browse the repository at this point in the history
  • Loading branch information
NameIsUser06 committed Jan 5, 2024
1 parent d610d54 commit 53eb917
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import com.investment.findfriend.domain.user.service.UpdateUserInfoService;
import jakarta.servlet.http.HttpServletRequest;
import lombok.RequiredArgsConstructor;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
Expand All @@ -23,7 +24,7 @@ public ResponseEntity<UserResponse> getUserInfo(HttpServletRequest httpServletRe
return getUserInfoService.execute(httpServletRequest);
}

@PutMapping("/update")
@PutMapping(value = "/update", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
public ResponseEntity<String> updateUserInfo(@RequestPart("data") UpdateUserInfoRequest request, @RequestPart("file") MultipartFile file, HttpServletRequest httpServletRequest) {
return updateUserInfoService.execute(request, file, httpServletRequest);
}
Expand Down

0 comments on commit 53eb917

Please sign in to comment.