This file contains hidden or 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
router.get('/api/v1/foobars', getFoobars); | |
router.get('/api/v1/foobars/baz/:baz', getFoobarsForBaz); | |
function getFoobars(req, res) { | |
var queryString = "select * from foobar;"; | |
executeQuery(res, queryString); | |
} | |
function getFoobarsForBaz(req, res){ | |
var queryString = "select * from foobar where baz = $1;"; |