Skip to content

Commit

Permalink
♻️Refactor: 사용자가 처음 작성한 PT 영상 게시글 조회 controller 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
eunxeum committed Nov 22, 2024
1 parent 00c3830 commit fa916e3
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ public ResponseEntity<BoardInfoResDto> boardInfo(@PathVariable(name = "boardId")
@ApiResponse(responseCode = "404", description = "게시글 없음", content = @Content(schema = @Schema(example = "게시글이 존재하지 않습니다."))),
})
@GetMapping("/my")
public ResponseEntity<BoardInfoResDto> myBoardInfo(@User LoginUser loginUser, @PathVariable(name = "boardId") Long boardId) {
BoardInfoResDto myBoardInfo = boardService.myBoardInfo(loginUser.getMemberId(), boardId);
public ResponseEntity<BoardInfoResDto> myBoardInfo(@User LoginUser loginUser) {
BoardInfoResDto myBoardInfo = boardService.myBoardInfo(loginUser.getMemberId());
return new ResponseEntity<>(myBoardInfo, HttpStatus.OK);
}

Expand Down Expand Up @@ -107,4 +107,5 @@ public ResponseEntity<Void> boardDelete(@User LoginUser loginUser,
boardService.boardDelete(loginUser.getMemberId(), boardId);
return new ResponseEntity<>(HttpStatus.NO_CONTENT);
}

}

0 comments on commit fa916e3

Please sign in to comment.