Skip to content

Commit

Permalink
Feat : 기본 이미지 변경을 get메서드에서 put 메서드로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
jhdl0157 committed Dec 1, 2022
1 parent 8a054ab commit c8eb02e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public ResponseEntity<Page<CommentDto>> getCommentList(@AuthenticationPrincipal
return ResponseEntity.ok(list);
}

@GetMapping("/profile/default/{userId}")
@PutMapping("/profile/default/{userId}")
public ResponseEntity<Boolean> changeDefaultProfile(@AuthenticationPrincipal User currentUser,
@PathVariable(name = "userId")Long userId){
if(!currentUser.getId().equals(userId)) throw new BadRequestException("Not Match Userid");
Expand Down

0 comments on commit c8eb02e

Please sign in to comment.