clay-lambda
Advanced tools
+4
-3
@@ -10,3 +10,4 @@ let routes = [] | ||
| event.method = method; | ||
| event.path = path; | ||
| event.path = apiPath; | ||
| event.originalPath = path; | ||
@@ -21,3 +22,3 @@ if (routes.length == 0 | ||
| if (route.path == path | ||
| if (route.path == apiPath | ||
| && (route.method == method || route.method == '*')) { | ||
@@ -28,3 +29,3 @@ return route.fn(event, done, fail) | ||
| return fail('Path ' + path + ' is not found.') | ||
| return fail('Path ' + apiPath + ' is not found.') | ||
| } | ||
@@ -31,0 +32,0 @@ |
+1
-1
| { | ||
| "name": "clay-lambda", | ||
| "version": "1.0.1", | ||
| "version": "1.0.2", | ||
| "description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
1300
3.17%36
2.86%