From 0ec6d1821d4cf03d23efcc45959e790ee895c206 Mon Sep 17 00:00:00 2001 From: Jakub Walkowiak Date: Wed, 23 Dec 2020 23:37:48 +0100 Subject: [PATCH] changed services and views --- src/app/group/services/group.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {