Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 685 Bytes

File metadata and controls

14 lines (10 loc) · 685 Bytes

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
});