ACalza / UofTBiohacks

UofTBiohacks CRUD app
4 stars 3 forks source link

[Backend] Accept a group request #21

Closed ACalza closed 8 years ago

ACalza commented 8 years ago

Make a route for group/:groupid/accept, remember this.userModel is always going to be there, so use that as reference because in the invites array you MUST pop it and save it, then assign the user model group the new groupID, finally return us a JSON like this.

{ userModel: usermodel, groupModel: groupModel, message:
}

AS usuall handle bad requests.