serverless-json-parser

1.0.1 • Public • Published

serverless-json-parser

Simple JSON parser for AWS Lambda + HTTP integration via serverless-http

Usage

'use strict'
 
const jsonParser = require('serverless-json-parser')()
const service = require('restana')()
service.use(jsonParser)
 
 
service.post('/create', (req, res) => {
  const payload = req.body
 
  // ...
})
 
module.exports = service

Package Sidebar

Install

npm i serverless-json-parser

Weekly Downloads

12

Version

1.0.1

License

MIT

Unpacked Size

4.67 kB

Total Files

7

Last publish

Collaborators

  • jkyberneees