api-gateway-proxy-request.md
December 24, 2017 ยท View on GitHub
Using the API Gateway Proxy Request Object
As an alternative to the Claudia API Builder request, you can also use the API Gateway Proxy Request object directly. To do that, pass the AWS_PROXY format as the requestFormat option to the constructor when instantiating the API builder.
var ApiBuilder = require('claudia-api-builder'),
api = new ApiBuilder({requestFormat: 'AWS_PROXY'});
api.get('/', request => {
// request is now the raw API Gateway proxy object
// not the API Builder replacement
});