From 396ed37bbcb08a42d77496d13266f9f360931b6b Mon Sep 17 00:00:00 2001 From: Dongyun Kim Date: Thu, 14 Nov 2024 04:07:29 +0900 Subject: [PATCH 1/2] refactor: #41 edit --- .../domain/comment/controller/CommentController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/leets/xcellentbe/domain/comment/controller/CommentController.java b/src/main/java/com/leets/xcellentbe/domain/comment/controller/CommentController.java index 7d0f723..86fcf53 100644 --- a/src/main/java/com/leets/xcellentbe/domain/comment/controller/CommentController.java +++ b/src/main/java/com/leets/xcellentbe/domain/comment/controller/CommentController.java @@ -23,7 +23,7 @@ import lombok.RequiredArgsConstructor; @RestController -@RequestMapping("/api/article/{articleId}") +@RequestMapping("/api/comment") @RequiredArgsConstructor public class CommentController { private final CommentService commentService; @@ -42,7 +42,7 @@ public ResponseEntity> createComment( //댓글 삭제(소프트) @PatchMapping("/{commentId}") - @Operation(summary = "게시글 삭제", description = "게시글을 삭제(상태 변경)합니다.") + @Operation(summary = "댓글 삭제", description = "댓글 삭제(상태 변경)합니다.") public ResponseEntity> deleteComment( HttpServletRequest request, @PathVariable UUID commentId){ From 2d4bc08d5e100ec5294b4a6f26c7bc27eb28536a Mon Sep 17 00:00:00 2001 From: Dongyun Kim Date: Thu, 14 Nov 2024 04:16:48 +0900 Subject: [PATCH 2/2] =?UTF-8?q?refactor:=20#41=20api=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xcellentbe/domain/comment/controller/CommentController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/leets/xcellentbe/domain/comment/controller/CommentController.java b/src/main/java/com/leets/xcellentbe/domain/comment/controller/CommentController.java index 86fcf53..8ef7264 100644 --- a/src/main/java/com/leets/xcellentbe/domain/comment/controller/CommentController.java +++ b/src/main/java/com/leets/xcellentbe/domain/comment/controller/CommentController.java @@ -29,7 +29,7 @@ public class CommentController { private final CommentService commentService; //댓글 작성 - @PostMapping() + @PostMapping("/{articleId}") @Operation(summary = "댓글 작성", description = "새 댓글을 작성합니다.") public ResponseEntity> createComment( HttpServletRequest request,