Skip to content
Myr

Added DEBUG=express:routes support

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 ca0bd1a · Browse files · 1 file+4 added−0 removed
This commit

State

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

Diff stats

1 file+4 added−0 removed

  • other:+4 added−0 removed

1 file+4 added−0 removed

modified:lib/router/index.js+4 added
9 unmodified lines
1011var Route = require('./route')12 , Collection = require('./collection')13 , utils = require('../utils')14 , debug = require('debug')('express:routes')15 , parse = require('url').parse;1617/**18 * Expose `Router` constructor.
181 unmodified lines
200Router.prototype._dispatch = function(req, res, next){201 var params = this.params202 , self = this;203204 debug('dispatching %s %s', req.method, req.url);205206 // route dispatch207 (function pass(i, err){208 var paramCallbacks209 , paramIndex = 0
9 unmodified lines
219 }220221 // match route222 req.route = route = self.match(req, i);223 debug('matched %s %s', route.method, route.path);224225 // implied OPTIONS226 if (!route && 'OPTIONS' == req.method) return self._options(req, res);227
193 unmodified lines