Skip to content

Commit

Permalink
correct readme documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
hauboldj committed Sep 7, 2017
1 parent 1925775 commit 1f10ecf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -14,9 +14,9 @@ let router = new Router({
middleware2
],
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 ] ]
],
defaultRoute: routes.defaultRoute
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "aws-simple-lambda-router",
"version": "0.0.2",
"version": "0.0.3",
"description": "Class to route apigateway requests inside lambda",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 1f10ecf

Please sign in to comment.