Skip to content
Snippets Groups Projects
Commit 6f2530b7 authored by Sofiane Lasri's avatar Sofiane Lasri
Browse files

console.log(req.headers);

parent 5eadbc2d
No related branches found
No related tags found
No related merge requests found
...@@ -722,6 +722,7 @@ app.get('/channels/:id', (req, res) => { ...@@ -722,6 +722,7 @@ app.get('/channels/:id', (req, res) => {
res.send(client.channels.cache.get(id)); res.send(client.channels.cache.get(id));
}) })
app.get('/mc/chat/:detail', (req, res) => { app.get('/mc/chat/:detail', (req, res) => {
console.log(req.headers);
var detail = JSON.parse(decodeURI(req.params.detail)); var detail = JSON.parse(decodeURI(req.params.detail));
sendMessageFromMcChat(detail.username, detail.message, req.headers.serverType); sendMessageFromMcChat(detail.username, detail.message, req.headers.serverType);
res.send("Envoyé!") res.send("Envoyé!")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment