regex-router
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -11,4 +11,4 @@ #!/usr/bin/env node | ||
route = this.routes[i]; | ||
if (route.method === undefined || route.method === req.method.toLowerCase()) { | ||
m = req.url.match(route.url); | ||
if (route.http_method === undefined || route.http_method === req.method.toLowerCase()) { | ||
m = req.url.match(route.regex); | ||
if (m) { | ||
@@ -15,0 +15,0 @@ return route.func(m, req, res); |
@@ -11,5 +11,5 @@ { | ||
"keywords": ["http", "web server", "regex", "routes"], | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"author": "Christopher Brown <io@henrian.com>", | ||
"engines": { "node": ">= 0.4.0" } | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3485