diff --git a/src/main/java/connectripbe/connectrip_be/pending_list/web/PendingListController.java b/src/main/java/connectripbe/connectrip_be/pending_list/web/PendingListController.java index 1edb0d06..62e1cb76 100644 --- a/src/main/java/connectripbe/connectrip_be/pending_list/web/PendingListController.java +++ b/src/main/java/connectripbe/connectrip_be/pending_list/web/PendingListController.java @@ -47,25 +47,27 @@ public ResponseEntity> getPendingList( } // 동행 신청 수락 - @PostMapping("/accept") + @PostMapping("/accept/{memberId}") public ResponseEntity 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 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 cancelPending( @AuthenticationPrincipal Long memberId, @PathVariable Long id