Last active
August 29, 2015 14:02
-
-
Save geek/072ee6cbbbcd7b6e4d5f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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