From a84a71babb48959d6c4e357bd1382baf79d1eb77 Mon Sep 17 00:00:00 2001 From: mitchelljfs Date: Mon, 16 Jul 2018 17:32:50 -0700 Subject: [PATCH] Added body to default APIGRequest fields --- router.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/router.go b/router.go index d1514d0..b7f871c 100644 --- a/router.go +++ b/router.go @@ -21,6 +21,7 @@ const ( // The Claims, Path, and QryStr will be populated by the the APIGatewayProxyRequest. // The Request itself is also passed through if you need further access. type APIGRequest struct { + Body string Claims map[string]interface{} Path map[string]string QryStr map[string]string @@ -124,6 +125,7 @@ func (r *APIGRouter) Respond() events.APIGatewayProxyResponse { for _, handler := range handlers { req := &APIGRequest{ + Body: r.request.Body, Path: r.request.PathParameters, QryStr: r.request.QueryStringParameters, Request: r.request,