Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@theide/api-gateway

wdalmut11MIT1.8.2

Just a simple package that will normalize the Api Gateway structures

readme

Api Gateway normalizations

Just a simple package that will normalize the Api Gateway structures

const { app, json, error } = require('@theide/api-gateway')

module.exports = async event => app(event)
  .then(json_body)
  .then(async ({req, res}) => {
    res.body = {test: true}

    return {req, res} // next middleware
  })
  .then(json) // send json response
  .catch(error)