Skip to content

Commit

Permalink
[feat] : 채팅방 상세조회 API 메서드 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
hyun2371 committed Sep 27, 2024
1 parent 660e9f0 commit 9f2b090
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,16 @@ public ResponseEntity<ChatRoomDetailResponse> createChatRoom(
return ResponseEntity.ok(response);
}

@Operation(summary = "채팅방 조회 API", description = "채팅방 아이디로 채팅방을 조회한다.")
@GetMapping("/api/chat-rooms/{chatRoomId}")
public ResponseEntity<ChatRoomDetailResponse> createChatRoom(
@PathVariable("chatRoomId") Long chatRoomId,
@AuthenticationPrincipal Member member
) {
ChatRoomDetailResponse response = chatRoomService.getChatRoomById(chatRoomId, member);
return ResponseEntity.ok(response);
}

@Operation(summary = "채팅 수락 API", description = "채팅방에서 요청자와의 채팅을 수락한다.")
@PatchMapping("/api/chat-rooms/{chatRoomId}/accept")
public ResponseEntity<AcceptChatResponse> acceptChat(
Expand Down

0 comments on commit 9f2b090

Please sign in to comment.