Created
October 12, 2016 00:22
-
-
Save freerangeeggs/2f8cb2a92c442e68d08e900eee4012db to your computer and use it in GitHub Desktop.
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
if('first' in data && 'last' in data) { | |
context.res = { | |
body: { greeting: 'Hello ' + data.first + ' ' + data.last + '!'} | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment