serverless-json-parser
v1.0.1
Published
Simple JSON parser for AWS Lambda + HTTP integration via serverless-http
Downloads
20
Maintainers
Readme
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