Browse Source

working on announce

master
poikilos 7 years ago
committed by Jacob Gustafson
parent
commit
00c98e2003
  1. 12
      webapp/server.js

12
webapp/server.js

@ -272,11 +272,19 @@ app.get('/get-players', function (req, res) {
res.send(JSON.stringify(players)); res.send(JSON.stringify(players));
}); });
var last_announce_string = "none";
app.get('/last-announce', function (req, res) {
res.setHeader('Content-Type', 'text/plain');
res.send(last_announce_string);
});
app.get('/announce', function (req, res) { app.get('/announce', function (req, res) {
console.log(JSON.stringify(req)); last_announce_string = JSON.stringify(req);
console.log(last_announce_string);
res.setHeader('Content-Type', 'text/plain'); res.setHeader('Content-Type', 'text/plain');
res.send(""); res.send("");
} });
app.get('/', function (req, res) { app.get('/', function (req, res) {
var ret = ""; var ret = "";

Loading…
Cancel
Save