NodeJS Express Root Path
<p>In NodeJS Express module, specifying path "/" will catch multiple HTTP requests like "/", "lib/main.js", "images/icon.gif", etc</p>

<pre><code> var app = require('express')
 app.use('/', authenticate);
</code></pre>

<p>In above example, if <code>authenticate</code> is defined as followed</p>

<pre><code>var authenticate = function(request, response, next) {
    console.log("=&gt; path = " + request.path);
    next()
}
</code></pre>

<p>Then you would see </p>

<pre><code>=&gt; path = /
=&gt; path = /lib/main.js
=&gt; path = /images/icon.gif
</code></pre>

<p>Could anyone advise how to define path in Express "app.use" that only catch "/"?</p>