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