Browse Source

correct use of req.body

master
poikilos 7 years ago
committed by Jacob Gustafson
parent
commit
1d69bc4176
  1. 2
      webapp/server.js

2
webapp/server.js

@ -280,7 +280,7 @@ app.get('/last-announce', function (req, res) {
}); });
app.get('/announce', function (req, res) { app.get('/announce', function (req, res) {
last_announce_string = JSON.stringify(req); last_announce_string = JSON.stringify(req.body);
console.log(last_announce_string); console.log(last_announce_string);
res.setHeader('Content-Type', 'text/plain'); res.setHeader('Content-Type', 'text/plain');
res.send(""); res.send("");

Loading…
Cancel
Save