Add Logs
This commit is contained in:
parent
394aee7262
commit
07b1541e01
|
|
@ -22,6 +22,7 @@ const fs = require("fs");
|
|||
|
||||
router.post("/message", global.apiAuth, async (req, res) => {
|
||||
const { channel, content } = req.body;
|
||||
console.log('Sling chat message request received:', req.body);
|
||||
if (!channel || !content) {
|
||||
return res.status(400).json({ error: "Missing channel or content" });
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue