You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(aws-apigateway): "LambdaRestApi" and "addProxy" routes (#867)
`LambdaRestApi` is a higher level construct for defining
Lambda-backed REST APIs:
const backend = new lambda.Function(...);
const api = new apigw.LambdaRestApi({
handler: backend,
proxyPath: '/'
});
`resource.addProxy` allows mounting a {proxy+} route
on a path, including an "ANY" method integration:
const api = new apigw.RestApi(this, 'api');
api.root.addProxy({
defaultIntegration: new apigw.HttpIntegration('http://foo/bar')
});
0 commit comments