1
0
Fork 0
mirror of https://github.com/kou029w/http-echo.git synced 2025-01-18 16:08:13 +00:00
http-echo/netlify-function.js

8 lines
252 B
JavaScript
Raw Normal View History

2020-05-16 20:55:07 +09:00
const awsServerlessExpress = require("aws-serverless-express");
const app = require("./index.js");
2020-05-16 20:55:07 +09:00
const server = awsServerlessExpress.createServer(app);
exports.handler = (event, context) => {
awsServerlessExpress.proxy(server, event, context);
};