Comparing version 0.4.0-pre to 0.4.0-pre-2
@@ -208,2 +208,4 @@ var path = require('path'); | ||
validateRoute: function (route, request, body, allowedMethods, cb) { | ||
var that = this; | ||
// Match the pattern with the url | ||
@@ -248,2 +250,5 @@ var match = (function (pattern) { | ||
var args = []; | ||
if (that.options.api === 'http') { args.push(request) } | ||
args.push(res); | ||
@@ -420,7 +425,3 @@ args.push.apply(args, match.slice(1).map(function (m) { | ||
try { | ||
if (that.options.api === 'http') { | ||
destination.call(this, this.request, this, params || {}); | ||
} else { | ||
destination.call(this, this, params || {}); | ||
} | ||
destination.call(this, this, params || {}); | ||
} catch (err) { | ||
@@ -427,0 +428,0 @@ this.respond({ |
@@ -12,5 +12,5 @@ { | ||
"main" : "./lib/journey", | ||
"version" : "0.4.0-pre", | ||
"version" : "0.4.0-pre-2", | ||
"directories" : { "test": "./test" }, | ||
"engines" : { "node": "> 0.2.6" } | ||
} |
54900
933