Permalink
Browse files

Pass req to factory

  • Loading branch information...
1 parent e799370 commit d05a51ada2dbfbe97b882c99386275b8a8ee4abe @benw committed Feb 14, 2013
Showing with 2 additions and 7 deletions.
  1. +1 −1 index.js
  2. +1 −6 package.json
View
@@ -9,7 +9,7 @@ var rhizome = module.exports = function rhizome(config) {
return function (req, res, next) {
var input = makeinput(req);
var node = parse(config, input);
- config.factory(node, function (err, resource) {
+ config.factory(req, node, function (err, resource) {
if (err) {
return next(err);
}
View
@@ -1,6 +1,6 @@
{
"name": "rhizome",
- "version": "0.2.3",
+ "version": "0.3.0",
"description": "Use a peg.js grammar to route url requests",
"author": {
"name": "Ben Williamson",
@@ -17,10 +17,5 @@
},
"dependencies": {
"pegjs": "0.7.x"
- },
- "devDependencies": {
- "mocha": "1.4.x",
- "supertest": "0.2.x",
- "chai": "1.2.x"
}
}

0 comments on commit d05a51a

Please sign in to comment.