Skip to content

Commit

Permalink
refacotr:requestpart로 변경 (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
jms0324 authored May 26, 2024
1 parent 81373de commit 431f5e9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,9 @@ public ResponseEntity<?> imageCreate(@RequestHeader("Authorization") String auth
}

@GetMapping("/api/diary/share")
public ResponseEntity<?> diaryShare(@RequestBody DiaryShareRequestDto requestDto){
public ResponseEntity<?> diaryShare(@RequestParam("diaryId") Long diaryId){

return ResponseEntity.ok().body(ApiResponse.success(SuccessType.PROCESS_SUCCESSED,diaryService.diaryShare(requestDto.getDiaryId())));
return ResponseEntity.ok().body(ApiResponse.success(SuccessType.PROCESS_SUCCESSED,diaryService.diaryShare(diaryId)));


}
Expand Down

0 comments on commit 431f5e9

Please sign in to comment.