Use route parameters with `app.use` on Express : <p>I cannot use route parameters with <code>app.use</code> on Express 4.16.2.</p>

<p>I have a statement like this:</p>

<pre><code>app.use('/course-sessions/:courseSessionId/chapter-sessions', chapterSessionsRouter)
</code></pre>

<p>And, in chapter sessions router:</p>

<pre><code>// Index.
router.get('/', ...resource.indexMethods)
</code></pre>

<p>When I got <code>'/course-sessions/0/chapter-sessions/'</code>, I have 404.</p>

<p>Then I am trying a statement like this:</p>

<pre><code>app.get('/course-sessions/:courseSessionId/chapter-sessions', ...chapterSessionResource.indexMethods)
</code></pre>

<p>Now I have the result I want. So route parameters don't work with <code>app.use</code>.</p>

<p>While I am researching, I got <a href="https://github.com/expressjs/express/issues/696" rel="noreferrer">this GitHub issue</a> and <a href="https://github.com/expressjs/express/pull/1935" rel="noreferrer">this pull request</a> which closes the issue. But it seems that the issue is still around here. Or do I make something wrong?</p>
