From cf30a3620461a62136dc73c9ff202d3b2c09c6ef Mon Sep 17 00:00:00 2001 From: Vali Draganescu Date: Fri, 28 Aug 2020 18:43:37 +0300 Subject: [PATCH] feat(request raw body): now the Request object also has the raw, unparsed body of the request --- src/router/lambda-router.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/router/lambda-router.ts b/src/router/lambda-router.ts index 9de8539..363a1fe 100644 --- a/src/router/lambda-router.ts +++ b/src/router/lambda-router.ts @@ -18,6 +18,7 @@ import { APIGatewayEvent } from "aws-lambda"; import { Envelope, getRouter, HttpMethod, Request, Response, StatusCode } from ".."; export abstract class LambdaRouter { + router = async (event: APIGatewayEvent): Promise> => { let parsedBody: any; if (event.body) {