feat: POST /api/v3/chats/:roomId

This commit is contained in:
Julian Lam
2021-12-14 11:01:05 -05:00
parent 09cf9c7770
commit eeffb9d978
8 changed files with 119 additions and 76 deletions

View File

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