diff --git a/src/app/group/services/group.service.ts b/src/app/group/services/group.service.ts index ac300b2..8053fda 100644 --- a/src/app/group/services/group.service.ts +++ b/src/app/group/services/group.service.ts @@ -29,7 +29,7 @@ export class GroupService { } leaveGroup(groupId: number): Observable { - return this.http.get(`${environment.host}${environment.apiEndpoints.groups.getCurrentUserGroups}/${groupId}/${localStorage.getItem('userId')}`); + return this.http.get(`${environment.host}${environment.apiEndpoints.groups.leave}/${groupId}/${localStorage.getItem('userId')}`); } delete(groupId: number): Observable {