Skip to content

Instantly share code, notes, and snippets.

@azarboon
Created July 6, 2019 08:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save azarboon/e1ac6e38b0de682d494639b14c19e486 to your computer and use it in GitHub Desktop.
Save azarboon/e1ac6e38b0de682d494639b14c19e486 to your computer and use it in GitHub Desktop.
function responseFactory(code, message) {
return {
'statusCode': code,
'body': JSON.stringify({
message: message
})
}
}
module.exports.responseFactory = responseFactory;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment