Add an exception to ExpressJS app.use()
<p>I'm working on a NodeJS project, and using Express as my routing framework.</p>

<p>I have a register form in my site, and a login form, both of which send requests to <code>/users</code> (<code>/register</code> and <code>/login</code> respectively). However, I would like to be able to have <code>/users/:userID</code> as routes to see profiles of different users, but of course, this routes imply that I have a session_id for every logged in user. </p>

<p>My question is, how can I use <code>app.use('/users', checkForSessionId)</code>, without applying it to register and login?</p>