Skip to content

Instantly share code, notes, and snippets.

@matisiekpl
Created December 27, 2018 18:58
Show Gist options
  • Save matisiekpl/9e86ea9f007bce31f683d36dd1da4969 to your computer and use it in GitHub Desktop.
Save matisiekpl/9e86ea9f007bce31f683d36dd1da4969 to your computer and use it in GitHub Desktop.
module.exports = {
functions: {
onRequest: (callback) => {
return {
callback: callback
};
},
onApp: (app) => {
return {
callback: app,
type: 'app'
}
},
work: (event, app) => {
return {
event,
callback: app,
type: 'job'
}
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment