feat: PUT /api/v3/chats/:roomId

This commit is contained in:
Julian Lam
2021-12-15 10:59:58 -05:00
parent eeffb9d978
commit 9a4fd5dc7e
7 changed files with 132 additions and 73 deletions

View File

@@ -44,6 +44,15 @@ Chats.post = async (req, res) => {
helpers.formatApiResponse(200, res, messageObj);
};
Chats.rename = async (req, res) => {
const roomObj = await api.chats.rename(req, {
...req.body,
roomId: req.params.roomId,
});
helpers.formatApiResponse(200, res, roomObj);
};
Chats.users = async (req, res) => {
// ...
};