title: req.query undefined in Nuxt Express Middleware get request
body: <p>Not a pro with things like server middleware, but stuck without much clues. </p>
  
  <p>In a vue component I am retrieving data with axios with this: </p>
  
  <pre><code>  axios
      .get('/api/getDailyFeedback', {
        params: {
          start: '2018-05-01'
        }
      })
  </code></pre>
  
  <p>Which goes to the express (version 4.16.2) server middleware setup in Nuxt. I have gotten normal get and post requests to work fine but the problem is when I want to pass in a parameter into a get request like the below: </p>
  
  <pre><code>router.get('/getDailyFeedback', (req, res) =&gt; {
     console.log('Query:', req.query.start);
     //do stuff
  });
  </code></pre>
  
  <p>What little experience I had with Express 4, it took me a little bit of time to realise why parameters passed in the body of a post request were undefined, but it was because I needed to add body-parser.json() to my nuxt config since they removed that from the main express package. Similarly I thought I needed bodyParse.urlencoded but that has not worked. This is the line I added to my nuxt.config: </p>
  
  <pre><code>serverMiddleware: [bodyParser.urlencoded({ extended: false }), bodyParser.json(), '~/api'],
  </code></pre>
  
  <p>I am unsure if the content type is not set correctly or I am missing something simple here. I know I am able to use various libraries to grab the parameters from the url string which I have access to, as Axios is working as expected and adding my 'params' object onto the end of my get request. But a lot of solutions I have seen to other problems is 'oh its as simple as accessing req.query' Alas Express fails to define a req.query object, or even req.params or req.body.  </p>
  
  <p>Hopefully that is enough detail to go on, thanks a lot for reading and any suggestions. </p>