Static GitHub Issues

[1909] Express req.query dont' work with ServerMiddleware

prev: on inspecting the sourcecode the block of window.__NUXT__ is huge
next: layout not exec when refresh current page

Hi all,

thanks for this awesome project.

I choosed example-auth as basic template for my project. But, when I add another get route into ~/api/index.js, req.query is always undefined

the step to reproduce this issue is very easy, just to add into ~/api/index.js something like this after post routes: router.get('/test', (req, res) => { console.log(req.query); res.json({}) })

Any help would be appreciated, cheers

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1708">#c1708</a>)</em></sub></div>