Skip to content

Instantly share code, notes, and snippets.

@geek
Last active August 29, 2015 14:02
Show Gist options
  • Save geek/072ee6cbbbcd7b6e4d5f to your computer and use it in GitHub Desktop.
Save geek/072ee6cbbbcd7b6e4d5f to your computer and use it in GitHub Desktop.
server.route({
method: 'GET',
path: '/user/{userId}',
config: {
handler: retrieveUser,
response: {
sample: 50,
schema: {
name: Joi.string().required(),
email: Joi.string().required().email()
}
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment