Skip to content

Commit

Permalink
feat(request raw body): now the Request object also has the raw, unpa…
Browse files Browse the repository at this point in the history
…rsed body of the request
  • Loading branch information
ValiDraganescu committed Aug 28, 2020
1 parent 3852b03 commit cf30a36
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/router/lambda-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Response<any>> => {
let parsedBody: any;
if (event.body) {
Expand Down

0 comments on commit cf30a36

Please sign in to comment.