diff --git a/src/main/java/com/example/healthylife/controller/TodayCommentsController.java b/src/main/java/com/example/healthylife/controller/TodayCommentsController.java index 45b2d6c..3bdf572 100644 --- a/src/main/java/com/example/healthylife/controller/TodayCommentsController.java +++ b/src/main/java/com/example/healthylife/controller/TodayCommentsController.java @@ -27,7 +27,7 @@ public ResponseEntity register(@RequestBody TodayCommentsEn } @ApiOperation(value = "오운완 댓글 수정") - @PostMapping("/update") + @PutMapping("/update") public ResponseEntity todayCommentsUpdate(@RequestBody TodayCommentsEntity updateTodayCommentsEntity, Authentication authentication){ String userId = authentication.getName(); try { @@ -45,7 +45,7 @@ public ResponseEntity todayCommentsUpdate(@RequestBody Toda } @ApiOperation(value = "오운완 댓글 삭제") - @PostMapping("/delete/{todayCommentSq}") + @DeleteMapping("/delete/{todayCommentSq}") public ResponseEntity todayCommentsDelete(@PathVariable("todayCommentSq") Long todayCommentsSq, Authentication authentication){ String userId = authentication.getName();