feat(api): group ownership API route, switch client-side to use API route

This commit is contained in:
Julian Lam
2020-12-22 14:26:31 -05:00
parent 98550d61d7
commit 32e36f7b2e
8 changed files with 53 additions and 36 deletions

View File

@@ -37,3 +37,13 @@ Groups.leave = async (req, res) => {
await api.groups.leave(req, req.params);
helpers.formatApiResponse(200, res);
};
Groups.grant = async (req, res) => {
await api.groups.grant(req, req.params);
helpers.formatApiResponse(200, res);
};
Groups.rescind = async (req, res) => {
await api.groups.rescind(req, req.params);
helpers.formatApiResponse(200, res);
};