Skip to content

Instantly share code, notes, and snippets.

@clonn
Created October 30, 2012 07:37
Show Gist options
  • Save clonn/3978815 to your computer and use it in GitHub Desktop.
Save clonn/3978815 to your computer and use it in GitHub Desktop.
module demo
module.exports = function (app, r) {
r.addRoute('/', 'get', [
function (req, res) {
res.send({status: 'ok', msg: 'you did it.'});
}
]);
r.addRoute('/test', 'get', [
function (req, res) {
res.send({status: 'ok', msg: 'route: /test you did it.'});
}
]);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment