Releases: emmoistner/serverless-endpoint
Releases · emmoistner/serverless-endpoint
0.1.0 (2017-04-07)
Features
#14 [feature] Enable default headers at function entry
endpoint can now be configured with an options argument
// handler.js
const endpoint = require('serverless-endpoint');
// options
const opts = {
headers: { "Access-Control-Allow-Origin": "*" }
}
// endpoint /hello
function getHelloWorld(req, res) {
res.send(200, { message: `Hello World!` })
}
module.exports.getHelloWorld = endpoint(getHelloWorld, opts)
0.0.8 (2017-03-31)
0.0.7 (2017-03-31)
Changes
#11 AWS
Added authorizer to the request mapping for aws
0.0.6 Release (2017-03-16)
Changes
#10 [fix] handle request ApiGateway json body better
0.0.5 Release (2017-03-14)
0.0.4 Release (2017-03-13)
Fix bug. awsRequestId should be used instead of awsId
0.0.3 Release (2017-03-13)
Fix npm package description
0.0.2 Initial Release (2017-03-13)
Basic functionality for AWS ApiGateway & Google Cloud Functions