export class ChatroomService {
private uriList = 'http://localhost:8080/list';
+ private uriGet = 'http://localhost:8080/get/';
constructor(private http: HttpClient) { }
getChatrooms(): Observable<Chatroom[]> {
return this.http.get<Chatroom[]>(this.uriList);
}
+
+ getChatroom(id: String): Observable<Chatroom> {
+ return this.http.get<Chatroom>(this.uriGet + id);
+ }
}