Skip to content

Commit

Permalink
Merge pull request #42 from Leets-Official/fix/#41/코멘트-api-수정
Browse files Browse the repository at this point in the history
[fix] 코멘트 api 수정
  • Loading branch information
dyk-im authored Nov 13, 2024
2 parents 075fee6 + 2d4bc08 commit 35d779c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
import lombok.RequiredArgsConstructor;

@RestController
@RequestMapping("/api/article/{articleId}")
@RequestMapping("/api/comment")
@RequiredArgsConstructor
public class CommentController {
private final CommentService commentService;

//댓글 작성
@PostMapping()
@PostMapping("/{articleId}")
@Operation(summary = "댓글 작성", description = "새 댓글을 작성합니다.")
public ResponseEntity<GlobalResponseDto<Void>> createComment(
HttpServletRequest request,
Expand All @@ -42,7 +42,7 @@ public ResponseEntity<GlobalResponseDto<Void>> createComment(

//댓글 삭제(소프트)
@PatchMapping("/{commentId}")
@Operation(summary = "게시글 삭제", description = "게시글을 삭제(상태 변경)합니다.")
@Operation(summary = "댓글 삭제", description = "댓글 삭제(상태 변경)합니다.")
public ResponseEntity<GlobalResponseDto<Void>> deleteComment(
HttpServletRequest request,
@PathVariable UUID commentId){
Expand Down

0 comments on commit 35d779c

Please sign in to comment.