mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-18 03:31:03 +01:00
feat: GET /api/v3/chats/:roomId
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user