Create a gist now

Instantly share code, notes, and snippets.

@srs /main.js
Created Oct 19, 2016

PurpleJS Blog - Snippet 12
router.get('/random/{max}', function(req) {
return {
body: getRandom(req.pathParams.max)
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment