Skip to content

Instantly share code, notes, and snippets.

@anthonydelgado
Created November 9, 2016 00:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anthonydelgado/2d2eeaebf0ad0d5c281196df69025eab to your computer and use it in GitHub Desktop.
Save anthonydelgado/2d2eeaebf0ad0d5c281196df69025eab to your computer and use it in GitHub Desktop.
/* GET home page. */
app.get('/', function(req, res, next) {
connection.query('SELECT * FROM quotes', function(err, rows, fields) {
if (err) throw err;
res.render('index', { quotes: rows });
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment