regex-router
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -32,3 +32,4 @@ #!/usr/bin/env node | ||
// add router.get(url, func), router.GET(url, func) shortcuts for common http methods | ||
var http_methods = ['get', 'put', 'post', 'head', 'delete']; | ||
// PATCH is not an official HTTP/1.1 method (http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html) | ||
var http_methods = ['options', 'get', 'head', 'post', 'put', 'delete', 'trace', 'connect', 'patch']; | ||
http_methods.forEach(function(http_method) { | ||
@@ -39,2 +40,2 @@ Router.prototype[http_method] = Router.prototype[http_method.toUpperCase()] = | ||
module.exports = Router; | ||
module.exports = Router; |
@@ -11,5 +11,4 @@ { | ||
"keywords": ["http", "web server", "regex", "routes"], | ||
"version": "0.1.2", | ||
"author": "Christopher Brown <io@henrian.com>", | ||
"engines": { "node": ">= 0.4.0" } | ||
"version": "0.1.3", | ||
"author": "Christopher Brown <io@henrian.com>" | ||
} |
# Regex-router | ||
Regex-router is a simple Node.js library to simplify routing. And by simplify, I mean 38 lines of code. | ||
Regex-router is a simple Node.js library to simplify routing. And by simplify, I mean 39 lines of code. | ||
@@ -5,0 +5,0 @@ # Example |
Sorry, the diff of this file is not supported yet
3590
35