Skip to content

Instantly share code, notes, and snippets.

@vikene
Created April 7, 2020 07:27
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 vikene/d4672d57b41f2789ae8539fa46ac9c24 to your computer and use it in GitHub Desktop.
Save vikene/d4672d57b41f2789ae8539fa46ac9c24 to your computer and use it in GitHub Desktop.
sample serverless http lambda function
var express = require('express');
var app = express();
var serverlessHttp = require('serverless-http')
app.get("/", function(req, res){
res.send("HELLO WORLD");
})
module.exports.handler = serverlessHttp(app)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment