Skip to content
Myr

Merge branch 'master' of github.com:visionmedia/express

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 · parents c6d7608, 7d15e2b · Browse files · 1 file+1 added−1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/guide.html+1 added-1 removed
353 unmodified lines
354 res.send('user ' + req.params.id);355});356</code></pre>357358<p>A route is simple a string which is compiled to a <em>RegExp</em> internally. For example358<p>A route is simply a string which is compiled to a <em>RegExp</em> internally. For example359when <em>/user/:id</em> is compiled, a simplified version of the regexp may look similar to:</p>360361<pre><code>\/user\/([^\/]+)\/?362</code></pre>
1375 unmodified lines