feat: GET /api/v3/chats/:roomId

This commit is contained in:
Julian Lam
2021-12-14 10:32:41 -05:00
parent 55e68e2fd5
commit 09cf9c7770
5 changed files with 158 additions and 4 deletions

View File

@@ -27,7 +27,12 @@ Chats.exists = async (req, res) => {
};
Chats.get = async (req, res) => {
// ...
const roomObj = await messaging.loadRoom(req.uid, {
uid: req.query.uid || req.uid,
roomId: req.params.roomId,
});
helpers.formatApiResponse(200, res, roomObj);
};
Chats.post = async (req, res) => {