TechnologyAdvice/glambda

View on GitHub
test/index.js

Summary

Maintainability
A
40 mins
Test Coverage
var glambda = require('../build/app')

// Run
glambda.init({
  lambdas: './test/lambdas',
  schema: './test/gateway.yml',
  port: 8181,
  apiPath: '/api',
  log: true,
  cors: {
    origin: '*',
    methods: 'GET,PUT,POST,DELETE,OPTIONS',
    headers: 'Content-Type, Authorization, Content-Length, X-Requested-With'
  }
})