changed services and views
This commit is contained in:
parent
95aa7e2883
commit
0ec6d1821d
@ -29,7 +29,7 @@ export class GroupService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
leaveGroup(groupId: number): Observable<void> {
|
leaveGroup(groupId: number): Observable<void> {
|
||||||
return this.http.get<void>(`${environment.host}${environment.apiEndpoints.groups.getCurrentUserGroups}/${groupId}/${localStorage.getItem('userId')}`);
|
return this.http.get<void>(`${environment.host}${environment.apiEndpoints.groups.leave}/${groupId}/${localStorage.getItem('userId')}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
delete(groupId: number): Observable<void> {
|
delete(groupId: number): Observable<void> {
|
||||||
|
Loading…
Reference in New Issue
Block a user