Skip to content

Commit

Permalink
Merge pull request #105 from miinyeong/main
Browse files Browse the repository at this point in the history
Fix: viewComment API (Post -> Get 변경)
  • Loading branch information
miinyeong authored Nov 28, 2023
2 parents ba625bd + c4f4e03 commit ffc3a9e
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
import com.onestep.server.entity.comment.WriteCommentDto;
import com.onestep.server.service.comment.CommentService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;

import java.util.List;

Expand All @@ -22,7 +19,7 @@ public String writeComment(@RequestBody WriteCommentDto writeCommentDto){
return commentService.writeComment(writeCommentDto);
}

@PostMapping("/comment/viewComment/{answerId}")
@GetMapping("/comment/viewComment/{answerId}")
public List<ViewCommentDto> viewComment(@PathVariable Long answerId){
return commentService.viewComment(answerId);
}
Expand Down

0 comments on commit ffc3a9e

Please sign in to comment.