Skip to content

Instantly share code, notes, and snippets.

@rafaelvicio
Created April 8, 2019 19:22
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 rafaelvicio/4eb37ea316b30b089eeddf8407a4ba42 to your computer and use it in GitHub Desktop.
Save rafaelvicio/4eb37ea316b30b089eeddf8407a4ba42 to your computer and use it in GitHub Desktop.
'use strict';
/* eslint-disable no-param-reassign */
module.exports.hello = function (context) {
context.log('JavaScript HTTP trigger function processed a request.');
context.res = {
// status: 200, /* Defaults to 200 */
body: 'Go Serverless v1.x! Your function executed successfully!',
};
context.done();
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment