Skip to content

Instantly share code, notes, and snippets.

@nazieb
Created February 2, 2019 15:31
Show Gist options
  • Save nazieb/7dc103d11085b71bdd005496491f1ef5 to your computer and use it in GitHub Desktop.
Save nazieb/7dc103d11085b71bdd005496491f1ef5 to your computer and use it in GitHub Desktop.
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