Express.js: How to serve one file for the default "/" route, then use express.static for the rest?
<p>I have a basic express app and I want to serve one file (after performing some logic) for the default route of <code>/</code>.</p>

<p>Unfortunately I can't use </p>

<pre><code>app.use(function (res, res, next){
    *logic here*
    res.sendFile(filepath);
}); 

express.static()
</code></pre>

<p>because that will intercept every request and send the <code>filepath</code> for every request.</p>

<p>Is there another way of doing this?</p>