File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/com/leets/xcellentbe/domain/comment/controller Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 23
23
import lombok .RequiredArgsConstructor ;
24
24
25
25
@ RestController
26
- @ RequestMapping ("/api/article/{articleId} " )
26
+ @ RequestMapping ("/api/comment " )
27
27
@ RequiredArgsConstructor
28
28
public class CommentController {
29
29
private final CommentService commentService ;
30
30
31
31
//댓글 작성
32
- @ PostMapping ()
32
+ @ PostMapping ("/{articleId}" )
33
33
@ Operation (summary = "댓글 작성" , description = "새 댓글을 작성합니다." )
34
34
public ResponseEntity <GlobalResponseDto <Void >> createComment (
35
35
HttpServletRequest request ,
@@ -42,7 +42,7 @@ public ResponseEntity<GlobalResponseDto<Void>> createComment(
42
42
43
43
//댓글 삭제(소프트)
44
44
@ PatchMapping ("/{commentId}" )
45
- @ Operation (summary = "게시글 삭제" , description = "게시글을 삭제(상태 변경)합니다." )
45
+ @ Operation (summary = "댓글 삭제" , description = "댓글 삭제(상태 변경)합니다." )
46
46
public ResponseEntity <GlobalResponseDto <Void >> deleteComment (
47
47
HttpServletRequest request ,
48
48
@ PathVariable UUID commentId ){
You can’t perform that action at this time.
0 commit comments