title: express how to access params from uri segment
body: <p>My link is like this, I want to access number <strong>16</strong> on server</p>
  <pre><code>http://website.com/getItem/16
  </code></pre>
  <p>my routes <strong>getIitem.js</strong> like this</p>
  <pre class="lang-js prettyprint-override"><code>let router = express.Router()
  router.get('/', async (req, res, next) =&gt; {
      console.log(req.params) // got empty object
      res.send('good') 
  })
  module.exports = router
  
  </code></pre>
  <p>my <strong>app.js</strong> is like this</p>
  <pre class="lang-js prettyprint-override"><code>var getItem = require('./routes/getItem')
  app.use('/getItem/:id', getItem)
  module.exports = app
  
  </code></pre>
  <p>Problem: When I console.log reg.params, got an empty object</p>