Skip to content
Myr

Removed more use("/", ...)s

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 879d411 · Browse files · 2 files+4 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+4 added−4 removed

  • other:+4 added−4 removed

2 files+4 added−4 removed

modified:examples/github/app.js+1 added-1 removed
modified:lib/express/server.js+3 added-3 removed
29 unmodified lines
30 this.redirects = {};31 connect.Server.call(this, middleware || []);3233 // Expose objects to each other34 this.use('/', function(req, res, next){34 this.use(function(req, res, next){35 req.params = req.params || {};36 req.params.get = {};37 res.headers = {};38 req.app = res.app = self;
8 unmodified lines
47 next();48 });4950 // Use router, expose as app.get(), etc51 this.use('/', router(function(app){51 this.use(router(function(app){52 self.routes = app;53 }));54};55
52 unmodified lines
108 * @api public109 */110111Server.prototype.error = function(fn){112 this.use('/', function(err, req, res, next){112 this.use(function(err, req, res, next){113 fn.apply(this, arguments);114 });115 return this;116};
80 unmodified lines