Instantly share code, notes, and snippets.

Embed
What would you like to do?
An index file for a SAM template
const awsServerlessExpress = require('aws-serverless-express');
const app = require('./app');
const server = awsServerlessExpress.createServer(app);
exports.handler = (event, context) => awsServerlessExpress.proxy(server, event, context);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment