This commit is contained in:
Tiago Kayaya
2020-11-03 11:52:21 +01:00
parent 21eb3d3cf1
commit 6f753b6a75
3 changed files with 43 additions and 17 deletions
+9 -7
View File
@@ -25,17 +25,19 @@ export class ChatService {
this.headers = this.headers.set('X-User-Id', res.userId);
this.headers = this.headers.set('X-Auth-Token', res.authToken);
});
}
getAllUsers(){
this.options = {
headers: this.headers,
};
console.log(this.headers);
}
getAllUsers(){
/* console.log(this.headers); */
return this.http.get(environment.apiChatUrl+'users.list', this.options);
}
getPrivateGroups(){
this.http.get(environment.apiChatUrl+'groups.list', this.options);
getAllConnectedUsers(){
return this.http.get(environment.apiChatUrl+'users.presence', this.options);
}
getAllPrivateGroups(){
return this.http.get(environment.apiChatUrl+'groups.list', this.options);
}
}