aws-simple-lambda-router
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "aws-simple-lambda-router", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Class to route apigateway requests inside lambda", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -17,5 +17,5 @@ # Lightweight promise based router for AWS Lambda invoked by AWS Apigateway lambda proxy integration | ||
routes: [ | ||
'GET', '/widgets', routes.getWidgets, | ||
'GET', '/widgets/:widgetId', [ authorizer.widget.get, routes.getWidget ] | ||
'PUT', '/widgets/:widgetId', [ authorizer.widget.put, routes.putWidget ] | ||
[ 'GET', '/widgets', routes.getWidgets ], | ||
[ 'GET', '/widgets/:widgetId', [ authorizer.widget.get, routes.getWidget ] ], | ||
[ 'PUT', '/widgets/:widgetId', [ authorizer.widget.put, routes.putWidget ] ] | ||
], | ||
@@ -22,0 +22,0 @@ defaultRoute: routes.defaultRoute |
7132