Permalink
Browse files

Gave the router a name. All the other connect middlewares are named f…

…unctions.
  • Loading branch information...
Raynos committed Jan 6, 2012
1 parent 613bdc9 commit fa088e37bce28ba6705eb69951fc8cebe22b2cc6
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/router/index.js
View
@@ -1,4 +1,3 @@
-
/*!
* Express - Router
* Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>
@@ -43,7 +42,7 @@ function Router(options) {
this.caseSensitive = options.caseSensitive;
this.strict = options.strict;
- this.middleware = function(req, res, next){
+ this.middleware = function router(req, res, next){
self._dispatch(req, res, next);
};
}

0 comments on commit fa088e3

Please sign in to comment.