src/create/aws/create-ws-router/create/route.js
function createIntegration(callback) {
      setTimeout(function throttle() {
        let uri = `arn:aws:apigateway:${region}:lambda:path/2015-03-31/functions/${arn}/invocations`
        // console.log(api)
        gateway.createIntegration({
          ApiId: api.ApiId,
          IntegrationMethod: 'POST',
          IntegrationType: 'AWS_PROXY',
          IntegrationUri: uri
        }, callback)
      }, 1000)
    }
function createIntegration(callback) {
      setTimeout(function throttle() {
        let uri = `arn:aws:apigateway:${region}:lambda:path/2015-03-31/functions/${arn}/invocations`
        // console.log(api)
        gateway.createIntegration({
          ApiId: api.ApiId,
          IntegrationMethod: 'POST',
          IntegrationType: 'AWS_PROXY',
          IntegrationUri: uri
        }, callback)
      }, 1000)
    }
function createIntegration ( callback ) { setTimeout ( function throttle ( ) { let uri = ` ${ region } ${ arn } ` // console.log(api) gateway . createIntegration ( { ApiId : api . ApiId , IntegrationMethod : 'POST' , IntegrationType : 'AWS_PROXY' , IntegrationUri : uri } , callback ) } , 1000 ) }
setup the integration
setup the integration