Created
April 23, 2015 16:57
-
-
Save fortruce/0ed1f1ad4d86a662967d to your computer and use it in GitHub Desktop.
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
app.get('/', function (req, res) { | |
//tell varnish not to cache: | |
setHeaders(res, 32); | |
console.log(req.headers); | |
res.send('Hello World!<p /><p />Welcome to unrecoverable.pw, running on node.js.'); | |
db.getCollectionNames(function (err, results) { | |
res.send(JSON.stringify(results)); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment