Last active
May 5, 2017 14:16
-
-
Save coreylight/5fa87a3b9e06d6872a00ab7909e67c69 to your computer and use it in GitHub Desktop.
Serverless Plugin Block 2
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
const uuid = require('uuid'); | |
const iopipe = require('iopipe')({token: 'TOKEN'}); | |
exports.handler = iopipe((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