Skip to content

Commit

Permalink
Merge pull request #85 from sh1220/dev
Browse files Browse the repository at this point in the history
fix: profile-img http method
  • Loading branch information
sh1220 authored Aug 13, 2024
2 parents ca44c61 + d650472 commit 052b2a4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public BaseResponse<?> changePassword(@PreAuthorize long userId, @Validated @Req
return new BaseResponse<>(null);
}

@PostMapping("/profile-img")
@PatchMapping("/profile-img")
public BaseResponse<ProfileImgResponse> changeProfileImg(@PreAuthorize long userId,@RequestParam("file") MultipartFile file){
String previousImgUrl = userService.getProfileImgUrl(userId);
if (previousImgUrl != null) {
Expand Down

0 comments on commit 052b2a4

Please sign in to comment.