Created
November 9, 2016 00:23
-
-
Save anthonydelgado/2d2eeaebf0ad0d5c281196df69025eab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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