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

headers

parent 503720cf
No related branches found
No related tags found
No related merge requests found
...@@ -724,7 +724,7 @@ app.get('/channels/:id', (req, res) => { ...@@ -724,7 +724,7 @@ app.get('/channels/:id', (req, res) => {
app.get('/mc/chat/:detail', (req, res) => { app.get('/mc/chat/:detail', (req, res) => {
console.log(req.headers); console.log(req.headers);
var detail = JSON.parse(decodeURI(req.params.detail)); var detail = JSON.parse(decodeURI(req.params.detail));
console.log(req.params['server-type']); console.log(req.headers['server-type']);
sendMessageFromMcChat(detail.username, detail.message, req.headers['server-type']); sendMessageFromMcChat(detail.username, detail.message, req.headers['server-type']);
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