Skip to content

Instantly share code, notes, and snippets.

@coreylight
Last active May 5, 2017 14:16
Show Gist options
  • Save coreylight/5fa87a3b9e06d6872a00ab7909e67c69 to your computer and use it in GitHub Desktop.
Save coreylight/5fa87a3b9e06d6872a00ab7909e67c69 to your computer and use it in GitHub Desktop.
Serverless Plugin Block 2
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