Skip to content

Instantly share code, notes, and snippets.

@fortruce
Created April 23, 2015 16:57
Show Gist options
  • Save fortruce/0ed1f1ad4d86a662967d to your computer and use it in GitHub Desktop.
Save fortruce/0ed1f1ad4d86a662967d to your computer and use it in GitHub Desktop.
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