Create a gist now

Instantly share code, notes, and snippets.

@srs /main.js
Created Oct 19, 2016

What would you like to do?
PurpleJS Blog - Snippet 8
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