From 269c7668f22df2b033494cec780f8685f2d144ee Mon Sep 17 00:00:00 2001 From: "chosw1002@naver.com" Date: Tue, 12 Nov 2024 21:15:16 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20post=20=EC=9A=94=EC=B2=AD=EC=9C=BC?= =?UTF-8?q?=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gdsc/domain/study/api/MentorStudyHistoryController.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/gdschongik/gdsc/domain/study/api/MentorStudyHistoryController.java b/src/main/java/com/gdschongik/gdsc/domain/study/api/MentorStudyHistoryController.java index feda96d1..9a7a5159 100644 --- a/src/main/java/com/gdschongik/gdsc/domain/study/api/MentorStudyHistoryController.java +++ b/src/main/java/com/gdschongik/gdsc/domain/study/api/MentorStudyHistoryController.java @@ -6,7 +6,7 @@ import io.swagger.v3.oas.annotations.tags.Tag; import lombok.RequiredArgsConstructor; import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PatchMapping; +import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @@ -20,14 +20,14 @@ public class MentorStudyHistoryController { private final MentorStudyHistoryService mentorStudyHistoryService; @Operation(summary = "스터디 수료 처리", description = "스터디 수료 처리합니다.") - @PatchMapping("/complete") + @PostMapping("/complete") public ResponseEntity completeStudy(@RequestBody StudyCompleteRequest request) { mentorStudyHistoryService.completeStudy(request); return ResponseEntity.ok().build(); } @Operation(summary = "스터디 수료 철회", description = "스터디 수료 처리를 철회합니다.") - @PatchMapping("/withdraw-completion") + @PostMapping("/withdraw-completion") public ResponseEntity withdrawStudyCompletion(@RequestBody StudyCompleteRequest request) { mentorStudyHistoryService.withdrawStudyCompletion(request); return ResponseEntity.ok().build();