From b22009ef75a05a6c8a7ca399bafa3da306735ed8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=B0=95=EC=A0=95=EB=AF=BC?= Date: Fri, 2 Aug 2024 13:41:07 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20qna=20=EA=B8=B0=EB=8A=A5=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/edufocus/edufocus/qna/controller/QnaController.java | 2 +- .../java/com/edufocus/edufocus/qna/service/QnaServiceImpl.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/main/java/com/edufocus/edufocus/qna/controller/QnaController.java b/backend/src/main/java/com/edufocus/edufocus/qna/controller/QnaController.java index 6ba7628..fe50454 100644 --- a/backend/src/main/java/com/edufocus/edufocus/qna/controller/QnaController.java +++ b/backend/src/main/java/com/edufocus/edufocus/qna/controller/QnaController.java @@ -68,7 +68,7 @@ public class QnaController { } } - @DeleteMapping("/answer/delete/{qna_id}") + @PostMapping("/answer/delete/{qna_id}") public ResponseEntity deleteAnswer(@PathVariable("qna_id") Long qna_id) { try { diff --git a/backend/src/main/java/com/edufocus/edufocus/qna/service/QnaServiceImpl.java b/backend/src/main/java/com/edufocus/edufocus/qna/service/QnaServiceImpl.java index c9e537f..d583346 100644 --- a/backend/src/main/java/com/edufocus/edufocus/qna/service/QnaServiceImpl.java +++ b/backend/src/main/java/com/edufocus/edufocus/qna/service/QnaServiceImpl.java @@ -141,6 +141,6 @@ qnaRepository.deleteById(id); Qna findQna = qnaRepository.findById(id).orElse(null); findQna.setAnswer(null); qnaRepository.save(findQna); - + } }