changed services and views

This commit is contained in:
Jakub Walkowiak 2020-12-23 23:37:48 +01:00
parent 95aa7e2883
commit 0ec6d1821d

View File

@ -29,7 +29,7 @@ export class GroupService {
}
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> {