title: json-server middleware not working as expected
body: <p><em>using node.js/Express/json-server</em></p>
  
  <p>I am trying to check ( and modify) the request url sent to my API json-server. I wrote as stated the following middleware in my app server.js</p>
  
  <pre><code>//  API JSON-SERVER
  const jsonServer = require('json-server')
  const apiServer = jsonServer.create()
  const apiMiddlewares = jsonServer.defaults()
  apiServer.use(apiMiddlewares)
  ...
  apiServer.use((req, res, next) =&gt; {
    console.log('REQUEST: ', req)  
    next() // Continue to JSON Server Router  
  })
  ...
  apiRouter = jsonServer.router(path.join(__dirname, '..', 'server', 'db-dev.json'))
  app.use('/api', apiRouter)
  </code></pre>
  
  <p>but I never get the request displayed
  where am I wrong ?</p>