Skip to content

Commit

Permalink
fix: post 요청으로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Sangwook02 committed Nov 12, 2024
1 parent f5865f2 commit 269c766
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -20,14 +20,14 @@ public class MentorStudyHistoryController {
private final MentorStudyHistoryService mentorStudyHistoryService;

@Operation(summary = "스터디 수료 처리", description = "스터디 수료 처리합니다.")
@PatchMapping("/complete")
@PostMapping("/complete")
public ResponseEntity<Void> completeStudy(@RequestBody StudyCompleteRequest request) {
mentorStudyHistoryService.completeStudy(request);
return ResponseEntity.ok().build();
}

@Operation(summary = "스터디 수료 철회", description = "스터디 수료 처리를 철회합니다.")
@PatchMapping("/withdraw-completion")
@PostMapping("/withdraw-completion")
public ResponseEntity<Void> withdrawStudyCompletion(@RequestBody StudyCompleteRequest request) {
mentorStudyHistoryService.withdrawStudyCompletion(request);
return ResponseEntity.ok().build();
Expand Down

0 comments on commit 269c766

Please sign in to comment.