由创建服务器到使用 serverless-http 包装服务和云函数
    image.png

    1. const serverless = require("serverless-http");
    2. let app = require("./app");
    3. const handler = serverless(app);
    4. // 返回输入参数
    5. exports.main = async (event, context) => {
    6. const res = await handler(event, context);
    7. return res;
    8. };