由创建服务器到使用 serverless-http 包装服务和云函数
const serverless = require("serverless-http");
let app = require("./app");
const handler = serverless(app);
// 返回输入参数
exports.main = async (event, context) => {
const res = await handler(event, context);
return res;
};