mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	feat(api): group ownership API route, switch client-side to use API route
This commit is contained in:
		| @@ -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); | ||||
| }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user