X-Git-Url: https://juplo.de/gitweb/?a=blobdiff_plain;f=src%2Fapp%2Fchatroom.service.ts;h=ab9220639a13d8099aed7af82760c3b3c662004b;hb=a172837fe042e8acb3030df2d84cd39615cf5a11;hp=77b08182d492fffd5d20ae45fe1e297ccfda49b9;hpb=dd18c97daff609633700d4ba360d2f6f4440b7d6;p=demos%2Fkafka%2Fchat diff --git a/src/app/chatroom.service.ts b/src/app/chatroom.service.ts index 77b08182..ab922063 100644 --- a/src/app/chatroom.service.ts +++ b/src/app/chatroom.service.ts @@ -9,10 +9,15 @@ import { Chatroom } from "./chatroom"; export class ChatroomService { private uriList = 'http://localhost:8080/list'; + private uriGet = 'http://localhost:8080/get/'; constructor(private http: HttpClient) { } getChatrooms(): Observable { return this.http.get(this.uriList); } + + getChatroom(id: String): Observable { + return this.http.get(this.uriGet + id); + } }