Created
April 21, 2017 16:49
-
-
Save coreylight/a00d8dcae2db0924b47dd908be36efee to your computer and use it in GitHub Desktop.
Serverless Plugin Post Block 1
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
const uuid = require('uuid'); | |
exports.handler = (event, context, callback) => { | |
const response = { | |
statusCode: 200, | |
body: JSON.stringify({ | |
message: 'Your uuid is: ' + uuid.v4(), | |
input: event | |
}) | |
}; | |
callback(null, response); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment