Skip to content

Instantly share code, notes, and snippets.

@gergelyke
Created March 4, 2014 16:26
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 gergelyke/9349776 to your computer and use it in GitHub Desktop.
Save gergelyke/9349776 to your computer and use it in GitHub Desktop.
Restify routes
server.get('/', [
restify.bodyParser(),
function (req, res, next) {
console.log('done')
res.send('okay ' + req.whatever)
return next()
}
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment