Added body to default APIGRequest fields
This commit is contained in:
parent
0a73e3f069
commit
a84a71babb
|
@ -21,6 +21,7 @@ const (
|
||||||
// The Claims, Path, and QryStr will be populated by the the APIGatewayProxyRequest.
|
// The Claims, Path, and QryStr will be populated by the the APIGatewayProxyRequest.
|
||||||
// The Request itself is also passed through if you need further access.
|
// The Request itself is also passed through if you need further access.
|
||||||
type APIGRequest struct {
|
type APIGRequest struct {
|
||||||
|
Body string
|
||||||
Claims map[string]interface{}
|
Claims map[string]interface{}
|
||||||
Path map[string]string
|
Path map[string]string
|
||||||
QryStr map[string]string
|
QryStr map[string]string
|
||||||
|
@ -124,6 +125,7 @@ func (r *APIGRouter) Respond() events.APIGatewayProxyResponse {
|
||||||
|
|
||||||
for _, handler := range handlers {
|
for _, handler := range handlers {
|
||||||
req := &APIGRequest{
|
req := &APIGRequest{
|
||||||
|
Body: r.request.Body,
|
||||||
Path: r.request.PathParameters,
|
Path: r.request.PathParameters,
|
||||||
QryStr: r.request.QueryStringParameters,
|
QryStr: r.request.QueryStringParameters,
|
||||||
Request: r.request,
|
Request: r.request,
|
||||||
|
|
Loading…
Reference in New Issue