Skip to content

Commit

Permalink
test: 모집 신청 API 낙관적락 테스트용 컨르롤러를 생성한다.
Browse files Browse the repository at this point in the history
  • Loading branch information
pushedrumex committed Dec 1, 2023
1 parent 3e8a42d commit 1bc2940
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@ public ResponseEntity<Void> registerApplicant(
return ResponseEntity.noContent().build();
}

@VolunteerOnly
@PostMapping("/v0/volunteers/recruitments/{recruitmentId}/apply")
public ResponseEntity<Void> registerApplicantV0(
@PathVariable Long recruitmentId,
@LoginUser Long volunteerId
) {
applicantService.registerApplicantWithOptimisticLock(recruitmentId, volunteerId);
return ResponseEntity.noContent().build();
}

@VolunteerOnly
@GetMapping("/volunteers/recruitments/{recruitmentId}/apply")
public ResponseEntity<IsAppliedRecruitmentResponse> isAppliedRecruitment(
Expand Down

0 comments on commit 1bc2940

Please sign in to comment.