This repository has been archived on 2026-03-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
openclaw-extensions/wecom/node_modules/@octokit/oauth-app/dist-src/middleware/aws-lambda/api-gateway-v2.js
T

14 lines
501 B
JavaScript

import { parseRequest } from "./api-gateway-v2-parse-request.js";
import { sendResponse } from "./api-gateway-v2-send-response.js";
import { handleRequest } from "../handle-request.js";
function createAWSLambdaAPIGatewayV2Handler(app, options = {}) {
return async function(event) {
const request = parseRequest(event);
const response = await handleRequest(app, options, request);
return response ? sendResponse(response) : void 0;
};
}
export {
createAWSLambdaAPIGatewayV2Handler
};