Created
April 7, 2020 07:27
-
-
Save vikene/d4672d57b41f2789ae8539fa46ac9c24 to your computer and use it in GitHub Desktop.
sample serverless http lambda function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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