Skip to content
Myr

docs

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 b6c0a9b · Browse files · 1 file+2 added−13 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+2 added−13 removed

  • other:+2 added−13 removed

1 file+2 added−13 removed

modified:lib/router/index.js+2 added-13 removed
42 unmodified lines
43 , 'merge'44];4546/**47 * Provides Sinatra and Express-like routing capabilities.47 * Provides Sinatra-like routing capabilities.48 *49 * Examples:50 *51 * connect.router(function(app){52 * app.get('/user/:id', function(req, res, next){53 * // populates req.params.id54 * });55 * app.put('/user/:id', function(req, res, next){56 * // populates req.params.id57 * });58 * })59 *49 * @param {Function} fn50 * @return {Function}62 * @api public51 * @api private52 */5354function router(fn){55 var self = this
312 unmodified lines