feat: Implemented an endpoint to get the details of a chatroom
authorKai Moritz <kai@juplo.de>
Sun, 25 Dec 2022 22:02:47 +0000 (23:02 +0100)
committerKai Moritz <kai@juplo.de>
Mon, 26 Dec 2022 12:44:39 +0000 (13:44 +0100)
src/main/java/de/juplo/kafka/chatroom/api/ChatroomController.java

index 5fabf36..8ea5540 100644 (file)
@@ -40,6 +40,12 @@ public class ChatroomController
     return chatrooms.values();
   }
 
+  @GetMapping("get/{chatroomId}")
+  public Chatroom get(@PathVariable UUID chatroomId)
+  {
+    return chatrooms.get(chatroomId);
+  }
+
   @PutMapping("post/{chatroomId}/{username}/{messageId}")
   public Mono<MessageTo> post(
       @PathVariable UUID chatroomId,