Created
October 19, 2016 14:09
-
-
Save srs/fdca444f4f1df0712aab79a84ab3a6e4 to your computer and use it in GitHub Desktop.
PurpleJS Blog - Snippet 8
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
exports.get = function(req) { | |
var max = req.params.max || 10; | |
return { | |
body: getRandom(max) | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment