title: access react route params in server side
body: <p>i came up with this problem with ReactJS and ExpressJS: So basically user uploads some info on <code>/info</code> route with React &amp; axios. then user gets route params from server side to redirect to:</p>
  
  <pre><code>axios.post('/info', SomeData)
  .then(res =&gt; res.data)
  .then(data =&gt;{ 
    window.location.replace(`/info/${data.id}`)
  })
  </code></pre>
  
  <p>this is piece of cake but when user redirects to that page problem occurs, i need to get data from that page. i can get route params and perform request on client side like this:</p>
  
  <pre><code>componentDidMount(){
      const { match: { params } } = this.props;
      axios.get(`/api/info/${params.id}`)      
  }
  </code></pre>
  
  <p>but how can i get request on server side? how can express access that "id" to search it in database and query data with it to send back to client? like:</p>
  
  <pre><code>app.get('/api/info/:id', async (req,res)=&gt;{
     await db.find({id: req.params.id}, (data) =&gt;{
        res.status(200).send({data})
     })
  })
  </code></pre>
  
  <p>Any help? Thanks!</p>