Started editing and adding real content.
This commit is contained in:
parent
8f75ed3ad4
commit
82255af112
1 changed files with 1 additions and 3 deletions
|
@ -68,13 +68,11 @@ app.get('/', function (req, res) {
|
|||
|
||||
database.each("SELECT * FROM players", function(err, row) {
|
||||
console.log('Received a player row! Weheeeee!');
|
||||
console.log(row.name);
|
||||
var nextElement = players.length;
|
||||
players[nextElement] = row.name;
|
||||
console.log(players);
|
||||
});
|
||||
|
||||
console.log(players);
|
||||
|
||||
res.render('index',
|
||||
{
|
||||
title: 'My Game',
|
||||
|
|
Loading…
Reference in a new issue