Skip to content

Commit

Permalink
Merge pull request #107 from 100-hours-a-week/fix-pending
Browse files Browse the repository at this point in the history
fix: 동행 신청 관련 API 경로 수정
  • Loading branch information
sen2y authored Aug 29, 2024
2 parents b6e5ec5 + 5c90d37 commit 8c876ea
Showing 1 changed file with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,25 +47,27 @@ public ResponseEntity<List<PendingListResponse>> getPendingList(
}

// 동행 신청 수락
@PostMapping("/accept")
@PostMapping("/accept/{memberId}")
public ResponseEntity<PendingResponse> acceptPending(
@AuthenticationPrincipal Long memberId,
@PathVariable Long id
@PathVariable Long id,
@PathVariable Long memberId

) {
return ResponseEntity.ok(pendingListService.acceptPending(memberId, id));
}

// 동행 신청 거절
@PostMapping("/reject")
@PostMapping("/reject/{memberId}")
public ResponseEntity<PendingResponse> rejectPending(
@AuthenticationPrincipal Long memberId,
@PathVariable Long id
@PathVariable Long id,
@PathVariable Long memberId

) {
return ResponseEntity.ok(pendingListService.rejectPending(memberId, id));
}

// 사용자가 본인이 신청한 동행 신청 취소
@PostMapping("/cancel")
@PostMapping("/cancel/{memberId}")
public ResponseEntity<PendingResponse> cancelPending(
@AuthenticationPrincipal Long memberId,
@PathVariable Long id
Expand Down

0 comments on commit 8c876ea

Please sign in to comment.