Skip to content
Snippets Groups Projects
Commit 0002f721 authored by Erik Borgeteien Hansen's avatar Erik Borgeteien Hansen
Browse files

add leaveCommunity api call

parent 9393e8df
No related branches found
No related tags found
1 merge request!136Warning when leaving group
......@@ -55,6 +55,15 @@ class CommunityService {
console.error(error);
});
}
async leaveCommunity(communityID) {
return await axios.patch(
API_URL + "/communities/" + communityID + "/leave",
{
headers: tokenHeader(),
}
);
}
}
export default new CommunityService();
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment