Permalink
Browse files

update match-route

  • Loading branch information...
1 parent cb021c2 commit 208fb28fc9af3195f8d3243fde4823e01ed97dbb @ramitos committed Dec 7, 2012
Showing with 8 additions and 8 deletions.
  1. +6 −6 package.json
  2. +2 −2 src/turnout.js
View
@@ -2,13 +2,17 @@
"author": "Sérgio Ramos <mail@sergioramos.me>",
"description": "http router",
"main": "src/turnout.js",
- "version": "0.0.5",
+ "version": "0.0.6",
"name": "turnout",
"license": "MIT",
"repository": {
"type": "git",
"url": "git://github.com/ramitos/turnout.git"
},
+ "dependencies": {
+ "match-route": "0.1.x",
+ "clone": "0.1.x"
+ },
"devDependencies": {
"blage": "0.0.x",
"specced": "0.0.x",
@@ -23,9 +27,5 @@
"keywords": [
"http",
"router"
- ],
- "dependencies": {
- "match-route": "0.0.x",
- "clone": "0.1.x"
- }
+ ]
}
View
@@ -10,8 +10,8 @@ module.exports = function () {
var routes = clone(defaults)
var turnout = function (req, res, next) {
- mr(req, routes, function (route, params, query) {
- if(route) route(req, res, params, query)
+ mr(req, routes, function (fn, route, params, query) {
+ if(fn) fn(req, res, params, query)
else next()
})
}

0 comments on commit 208fb28

Please sign in to comment.