Skip to content

Commit 35d779c

Browse files
authored
Merge pull request #42 from Leets-Official/fix/#41/코멘트-api-수정
[fix] 코멘트 api 수정
2 parents 075fee6 + 2d4bc08 commit 35d779c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/leets/xcellentbe/domain/comment/controller/CommentController.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323
import lombok.RequiredArgsConstructor;
2424

2525
@RestController
26-
@RequestMapping("/api/article/{articleId}")
26+
@RequestMapping("/api/comment")
2727
@RequiredArgsConstructor
2828
public class CommentController {
2929
private final CommentService commentService;
3030

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

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

0 commit comments

Comments
 (0)