feat: POST /chats/:roomId/users

This commit is contained in:
Julian Lam
2021-12-21 11:05:27 -05:00
parent 6eea6451d2
commit d62ee84637
8 changed files with 168 additions and 125 deletions

View File

@@ -61,7 +61,12 @@ Chats.users = async (req, res) => {
};
Chats.invite = async (req, res) => {
// ...
const users = await api.chats.invite(req, {
...req.body,
roomId: req.params.roomId,
});
helpers.formatApiResponse(200, res, users);
};
Chats.kick = async (req, res) => {