mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
save
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user