@theide/api-gateway

1.8.2 • Public • Published

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)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.8.2
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.8.2
    0
  • 1.8.0
    0

Package Sidebar

Install

npm i @theide/api-gateway

Weekly Downloads

0

Version

1.8.2

License

MIT

Unpacked Size

13.9 kB

Total Files

23

Last publish

Collaborators

  • wdalmut