Skip to content

Commit

Permalink
Create user chat history endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Fagorym committed Apr 3, 2024
1 parent 7fd3a34 commit 305cab7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public void send(@DestinationVariable Long orderId, Message<ChatMessage> message
chatService.save(message.getPayload(), orderId);
}

@GetMapping
@GetMapping("/user/chat/history")
public List<MessageDto> getMessages(@RequestParam Long orderId) {
return chatService.getChat(orderId);
}
Expand Down

0 comments on commit 305cab7

Please sign in to comment.