Created
October 19, 2016 14:13
-
-
Save srs/3d2b968f5352c28ba2cdc50a242f83b8 to your computer and use it in GitHub Desktop.
PurpleJS Blog - Snippet 12
This file contains 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
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